Skip to content

Move the 3D work to the 3D branch; main stays releasable - #26

Merged
withshalom merged 6 commits into
mainfrom
claude/3d-commits-main-branch-pol5un
Nov 18, 2026
Merged

withshalom merged 6 commits into
mainfrom
claude/3d-commits-main-branch-pol5un

Conversation

@withshalom

@withshalom withshalom commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Moves the 3D work off main so main can be released again. The 3D work is now on the 3D branch, which holds main as it was at 1506ce6 with everything in it. backup-11-18-2026 holds the same commit as a backup. Nothing is deleted, and main's history is not rewritten.

What leaves main (kept on 3D)

What stays on main

  • All the DWG work, ACIS in DWG included (the writer's 3DSOLID/REGION/BODY records, the 2013/2018 data store, the reader's solids as text). It predates the 3D PRs.
  • PR Command line: AutoComplete learns the commands used most #24 (AutoComplete), PR Settings file: CONFIGEXPORT and CONFIGIMPORT (portable TOML config) #25 (Settings file), AREATOTAL and conic Rho. Every line they added is still on main (checked line by line).
  • Restored from inside PR 3D solids on solidcore (replaces #20) #22, because they are DXF/DWG fixes rather than 3D:
    • afccf04: the current table style goes in AutoCAD's variables dictionary, not $CTABLESTYLE (original author kept).
    • The SAT-text parts of c362986 and 2f3b3ef: DWG 2000–2010 SAT lines end with a line feed alone, and the End-of-ACIS-data line is kept. With CR LF, AutoCAD 2027 discards the solids.
  • AGENTS.md: a new "Branches" section. 3D work goes to 3D, and main stays releasable.

Commits

  1. Revert PR 3D: lumps, mirrors, objects in space, 3D transforms (NURBS writer diagnosed in handoff) #23 (merge cb38d21)
  2. Revert PR 3D solids on solidcore (replaces #20) #22 (merge 0c956e9)
  3. Revert bb55741 (3D-dev-state.MD)
  4. Restore the $CTABLESTYLE fix (afccf04)
  5. Restore the DWG SAT-text fixes
  6. AGENTS.md branch rule

Conflicts were only in CHANGELOG.md, icons.rs and the Italian and Chinese translations. In each one, 3D lines sat next to the newer lines; the 3D lines were dropped and the newer lines kept.

Checks

  • CI (gate, ubuntu-24.04): passed.
  • Locally:
    • fmt, i18n, assets, layers and wasm: passed.
    • Tests: 3,797 passed, 0 failed (all 121 test binaries), and the doctests passed. The GPU test gpu_viewport_stencil can't run without a graphics adapter, so it was left out of the local run; CI runs it.
    • Clippy: clean apart from one lint in crates/engine/tests/it/arc_ctrl_direction.rs (PR ARC: hold Ctrl (Cmd on macOS) to switch direction in every variant #12, not touched here). It comes from Rust 1.97's newer clippy, and CI's clippy passes.
  • No draftcraft-solid, solidcore or 3D command left on main. Every file that differs from 3b6e91c (the last state before the 3D PRs) is explained by the work kept above.
  • The 50 AutoCAD 3D drawings from 3D through draftcraft-cli roundtrip in strict mode:
    • Every file opens, saves and reopens with no panic. No 3DSOLID, REGION or BODY is lost.
    • Results are identical, file by file, to main before this PR (1506ce6, default build). The 29 strict findings (DXF→DWG drops surfaces, MESH, MATERIAL and AutoCAD's solid-history records) are already on main and are not changed here.

Merging (rehearsed on throwaway branches)

Use "Create a merge commit", not squash. Squash also works, but it needs one more step (below).

Until step 3 below is done, nobody merges main into 3D. That merge deletes the 3D code from 3D, and it conflicts as soon as 3D has work of its own. The rehearsal showed this.

Right after this PR merges:

  1. Branch off the new main, for example restore-3d.
  2. On it, revert this PR's first five commits, newest first: the SAT-text fixes, the $CTABLESTYLE fix, 3D-dev-state.MD, then the reverts of 3D solids on solidcore (replaces #20) #22 and 3D: lumps, mirrors, objects in space, 3D transforms (NURBS writer diagnosed in handoff) #23. Keep the AGENTS.md commit. In the rehearsal all five reverted cleanly.
  3. Merge restore-3d into 3D with a PR. Check that 3D differs from its previous tip only by the AGENTS.md rule.

After that, main merges into 3D cleanly, and when 3D is finished, 3D merges back into main in one PR that brings all of it back. Both were rehearsed.

If this PR is squash-merged instead: in step 2, revert the squash commit, then cherry-pick the AGENTS.md commit back, because the revert takes the rule out too.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4

claude and others added 6 commits November 18, 2026 17:47
The 3D work now lives on the 3D branch until it is finished, so main
can be released. This reverts merge cb38d21 (PR #23), keeping the
later Settings file, AREATOTAL and conic Rho entries where they shared
lines with it (CHANGELOG, Italian and Chinese translations).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
The 3D work now lives on the 3D branch until it is finished, so main
can be released. This reverts merge 0c956e9 (PR #22): the solid kernel
facade (crates/solid), the 3D commands, the 3D view and workspace, the
ACIS translator, the AutoCAD 3D test drawings and the 3D handoff notes.

The DWG work stays on main, ACIS in DWG included (it predates #22).
Where #22 shared lines with later work (CHANGELOG, icons, Italian and
Chinese translations), the Settings file, AREATOTAL and Rho entries
are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
Reverts bb55741 (3D-dev-state.MD), committed to main directly rather
than through PR #23; it lives on the 3D branch with the 3D work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
…not $CTABLESTYLE

Restored on main: this DXF and DWG fix came in with PR #22 but is not
3D work. Cherry-picked from afccf04 (Skryx Dev), the original message:

AutoCAD's DXF has no $CTABLESTYLE header variable (AutoCAD reports it as unknown): it keeps the
current table style as a DICTIONARYVAR of the AcDbVariableDictionary. DraftCraft's DXF now
writes that dictionary (and its DICTIONARYVAR class) as its DWG already did, and no longer
writes $CTABLESTYLE; $HANDSEED is raised above the dictionary's handles.

The dictionary is now modelled rather than kept raw: the DXF and DWG readers take it into
Drawing::variables (with the current table style), and both writers save it again with the
drawing's own current table style, so a style made current after opening is not lost to a
stale kept copy. $CTABLESTYLE in older files' headers is still read.

(cherry picked from commit afccf04)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
…ata line kept

Restored on main: these two DWG writer fixes came in with PR #22 but are
DWG work, not 3D, and the DWG work stays on main. They are the SAT-text
parts of c362986 and 2f3b3ef (Skryx Dev), and nothing else of them:

- c362986: each SAT line ends with a line feed alone, as AutoCAD 2000
  and 2010 store it; with CR LF, AutoCAD 2027 discards every solid of
  the file.
- 2f3b3ef: the end-of-data line stays when the groups have one. A SAT
  whose header gives no record count needs it (AutoCAD 2027 error
  75003 without it). Groups holding only that line are no SAT text.

docs/solids.md, also touched by 2f3b3ef, stays on the 3D branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
So that agents and people send 3D pull requests to the 3D branch, and
main can be released while 3D is being finished.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
@withshalom
withshalom marked this pull request as ready for review November 18, 2026 18:20
@withshalom
withshalom merged commit 42a3f13 into main Nov 18, 2026
2 checks passed
withshalom pushed a commit that referenced this pull request Nov 18, 2026
…ine feed alone, and the End-of-ACIS-data line kept"

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 e2d69d1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
withshalom pushed a commit that referenced this pull request Nov 18, 2026
…s in AutoCAD's variables dictionary, not $CTABLESTYLE"

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 7fba479.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
withshalom pushed a commit that referenced this pull request Nov 18, 2026
…note goes to the 3D branch"

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 0b16514.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
withshalom pushed a commit that referenced this pull request Nov 18, 2026
…(3D solids on solidcore)"

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 ee840fe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F67RssNr67uM2HRS3vdet4
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
withshalom added a commit that referenced this pull request Nov 18, 2026
…rk restored

From here on, main merges into 3D without deleting the 3D code, and 3D comes back to main in one PR when it is finished.
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.

3 participants