Skip to content

3D: lumps, mirrors, objects in space, 3D transforms (NURBS writer diagnosed in handoff) - #23

Merged
SkryxDev merged 3 commits into
mainfrom
feat/solids-3d-finish
Nov 18, 2026
Merged

SkryxDev merged 3 commits into
mainfrom
feat/solids-3d-finish

Conversation

@SkryxDev

Copy link
Copy Markdown
Member

3D: lumps, mirrors, objects drawn in space, 3D transforms, and AutoCAD's verdict on the NURBS writer

The next stretch of the 3D work, after PR 22. The rest goes on from handoff.md, which is updated: section 1 lists what this PR adds, and section 3, item A1, holds AutoCAD's verdict on the NURBS writer with the diagnosis and the fix.

What's new

  • Several lumps in one solid (A3): an ACIS body made of several separate pieces now opens as one solid of several pieces. Before, it was kept as saved.
  • Mirrored ACIS bodies (A4, reading): a body whose transform mirrors now opens mirrored. Before, it was refused.
  • The 3D view draws every object where it is in space (A12). That covers lines and points with Z, 3D polylines, 3DFACE, polyface meshes, helices, thickness, circles, arcs, ellipses and polylines in other planes, and block references with Z, rotation or arrays (crates/render/src/wire3d.rs).
  • LINE takes 3D points, typed as x,y,z or @dx,dy,dz, or given as JSON [x,y,z].
  • New commands, also in release builds without solids: 3DMOVE (3M), 3DROTATE (3R), ROTATE3D, 3DSCALE, MIRROR3D, 3DALIGN (3AL) and 3DARRAY (3A).
    • Each has a JSON form, AutoCAD's prompts and keywords, tests, icons drawn in code, a place in the 3D Modeling Home ▸ Modify panel, and Italian and Chinese labels.
    • The geometry is EntityKind::transform3. Kinds that can't leave the XY plane yet are left as they were, and the command says how many.

Checked in AutoCAD 2027 (43 files, DWG and DXF 2000/2010/2013/2018)

  • Pass: DraftCraft's solids and regions; their properties (colour, lineweight, linetype scale, transparency); AutoCAD's own solids saved back unedited.

  • Fail: NURBS faces written by DraftCraft. AutoCAD's LOFT and SWEEP moved in DraftCraft and saved don't load in any version (Error Code Number is 75004). The cause is in handoff.md A1:

    • pcurves are not on their edges' parameter;
    • the sweep's seam and closed edges are not written as AutoCAD writes them.

    The fix is planned there, starting with keeping AutoCAD's ACIS under a body transform for moved solids.

  • Fail: transparency is lost in DWG 2000 (handoff.md A1b).

Tests

  • cargo xtask ci and cargo xtask ci --solids pass, apart from the known macOS-only failures.
  • New tests:
    • transform3 (doc);
    • modify3d (engine: JSON forms, prompts, hostile sizes);
    • wire3d (render);
    • objects_off_the_xy_plane_are_drawn_where_they_are;
    • a_solid_of_separate_pieces_reads_as_one_body;
    • line_takes_points_in_space.

The new AutoCAD test drawings (lumps, mirror, procsurf, regions-ucs, surfaces, mesh, history, facecolor, legacy3d, sab-2004/2007/2010) and their ATTRIBUTION rows come in a separate commit on this branch.

🤖 Generated with Claude Code

SkryxDev and others added 2 commits November 17, 2026 17:33
- ACIS reader: bodies with several lumps and mirrored bodies (negative
  determinant transforms) read as AutoCAD draws them.
- 3D view draws lines, polylines, 3D faces, meshes and extruded objects
  at their heights; LINE takes points in space (typed x,y,z or JSON).
- New commands 3DMOVE, 3DROTATE, ROTATE3D, 3DSCALE, MIRROR3D, 3DALIGN,
  3DARRAY (EntityKind::transform3 + Mat4 helpers), with ribbon icons and
  it/zh labels.
- handoff.md: the NURBS writer failure and the DWG 2000 transparency
  diagnosed against AutoCAD, with the remaining work for the next round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, SAB versions)

Drawings saved by AutoCAD 2027 for the 3D checks in handoff.md, with
their ATTRIBUTION rows and README-finish.md describing each one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
withshalom added a commit that referenced this pull request Nov 18, 2026
Status review of DraftCraft 3D (PRs #22/#23, handoff, SolidCore/SolidCraft forks), completeness vs the AutoCAD-3D goal, and a prioritised plan. Signed Chromie.
@SkryxDev
SkryxDev merged commit cb38d21 into main Nov 18, 2026
3 checks passed
withshalom added a commit that referenced this pull request Nov 18, 2026
… releasable

3D (PRs #22 and #23, 3D-dev-state.MD) now lives on the 3D branch until it is finished. All DWG work stays on main, ACIS in DWG included. Backup of main before this merge: backup-11-18-2026 (1506ce6).
withshalom pushed a commit that referenced this pull request Nov 18, 2026
…(3D transforms, lumps, mirrors)"

The 3D branch gets main after PR #26 with the 3D work put back, so that
later merges of main into 3D keep it. This reverts commit ee098cc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant