Skip to content

Offer only 3MF for multi-head builds, whose STL was non-manifold - #203

Merged
vycdev merged 5 commits into
developfrom
fix/multi-head-no-stl
Nov 20, 2026
Merged

vycdev merged 5 commits into
developfrom
fix/multi-head-no-stl

Conversation

@vycdev

@vycdev vycdev commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Multi-head builds still offered Download STL, and that STL wasn't printable. Multi-head geometry is a closed shell per region × layer, so one STL just stacks them together: a 2-region × 2-layer probe gave 15 edges shared by more than two triangles and 4 coincident triangle pairs. STL can't carry head routing anyway, and the Multi-head guide already says to export 3MF.

Now the download menu offers only 3MF (and Open in Slicer) for a built multi-head model, as it already did for Flat Paint. A build that falls back to a normal single-head model still offers STL. Single-head and Flat Paint behavior are unchanged.

  • App.tsx treats the model as multi-head when builtMultiHeadPlan exists. That is the same value ThreeDView uses to pick the multi-head mesh path. The STL handler checks the same flag.
  • The handler also checks the mesh itself, on top of Block 3D export while a rebuild starts, so it can't mix two builds #212's busy-build guard. Every published model group is tagged kromacutStlUnavailable (Flat Paint or multi-head). onExportStl refuses a tagged mesh both before and after the overlay wait, with the existing "model not ready" alert. So a routed mesh that outlives its build snapshot can never become an STL.
  • The Multi-head and export guides say so in all 12 languages. The change is folded into the existing (unreleased) Multi-head CHANGELOG bullet.

Proof: @smoke tests in multi-head-wiring.spec.ts:

  • A real multi-head build (CMYK + white/black, 3 heads) offers 3MF but no STL, and its mesh is tagged. Toggling Multi-head off keeps STL hidden until the rebuild. After the single-head rebuild, STL is back and the mesh is untagged. Fails on the unfixed source at the download-stl count check.
  • Both existing fallback tests check that the fallback still offers STL.
  • When a fallback snapshot shows STL, the previous routed mesh is no longer the export reference. The handler refuses a tagged mesh both at click time and when the mesh is swapped during the overlay wait, and no download happens. Each check failed without its fix before the rebase onto Block 3D export while a rebuild starts, so it can't mix two builds #212.

Locally on the final head:

  • Lint, build, npm test (1159 pass), and the docs/i18n checks pass.
  • The multi-head and export-during-rebuild specs pass on fresh servers.
  • 7 of 8 test:e2e:all suites pass. In the @smoke suite, only the four Display P3 tests in image-decode-reuse.spec.ts fail, and they fail the same way on develop (ce6b3c9) without this PR.

Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved

Council review

Rounds: 4, plus a recheck of the rebase onto #212/#202

Delegate Round 1 Round 2 Round 3 Round 4 Rebase recheck
Claude Opus 5.5 9/10 9/10 9/10 9/10 not run
GPT-6.2 Sol 8/10 8/10 8/10 10/10 10/10

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@vycdev
vycdev force-pushed the fix/multi-head-no-stl branch from d804f66 to bb3229e Compare November 19, 2026 21:47
vycdev and others added 5 commits November 20, 2026 16:42
Multi-head meshes are many closed region x layer shells, so a single STL of
them is non-manifold and can't carry head routing. Hide Download STL for
built multi-head models as Flat Paint already does, and guard the STL
handler. Single-head fallback builds keep STL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A single-head fallback commits its snapshot before ThreeDView rebuilds, so
the menu showed STL while the export reference still held the routed
multi-head mesh. Clear it when the snapshot is applied. Also check that the
menu follows the built model rather than the Multi-head toggle, and trim the
changelog wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…shot

An overlapping build can republish its mesh after a newer single-head
snapshot enabled STL. Tag the published group and check it in the STL
handler, so no ordering exports a routed mesh. Bound the fallback test's
observer so a closed menu fails quickly instead of hanging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The handler waits two frames before exporting the captured group. Check
again that it is still the published, STL-capable mesh, so a build that
starts in between can't hand routed geometry to the STL exporter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vycdev
vycdev force-pushed the fix/multi-head-no-stl branch from bb3229e to 4000140 Compare November 20, 2026 14:42
@vycdev
vycdev merged commit 949055a into develop Nov 20, 2026
14 checks passed
vycdev added a commit that referenced this pull request Nov 20, 2026
Merge the four Open in Slicer bullets into one entry for the shipped
flow, fold Multi-head filament requirements into Multi-head printing,
and move the decode-once image work into its own Changed entry. Move
touch-up history fixes that predate v4.3 into Fixed, add the missing
diagnostics folder fix, and reduce the cats benchmark entry to one
Fixed line. Fold in the notes from PRs merged since (#203, #205, #206,
#208, #209, #210, #212, #213) and trim test-only and maintenance
details that do not help users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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