Skip to content

Fix forma-print instance handling, units, and STEP topology - #236

Merged
wrong-nebula merged 1 commit into
mainfrom
codex/fix-print-pipeline
Dec 5, 2026
Merged

wrong-nebula merged 1 commit into
mainfrom
codex/fix-print-pipeline

Conversation

@wrong-nebula

Copy link
Copy Markdown
Owner

Changes

  • Include placed instances in print checks, orientation, heatmaps, and export, including scenes consisting entirely of instances.
  • Honor the Forma scene’s declared unit and glTF’s metre unit during print preparation. Convert normalized millimetres to metres when writing GLB vertices and placements.
  • Use the core STEP writer to preserve disconnected solids and enclosed voids.
  • Add five regression tests and run the forma-print suite in the Rust CI job.

CLI verification

Fixture Observed result
3MF assembly with a body and two pins Three build items spanning 46 mm. The instance-only version contained both pins, spanning 22 mm.
Script declaring millimetres A 10 mm cube remained 10 mm.
3 m GLB imported from stdin The check measured 3,000 mm and failed the build-volume check as expected.
Single-part and multi-part GLB exports Exported geometry measured 0.01 m for a 10 mm cube and 0.04 m across the two-part assembly.
STEP solid with an enclosed cavity Two closed shells and one BREP_WITH_VOIDS.
STEP array of two disjoint boxes Two closed shells and two MANIFOLD_SOLID_BREP entities.

Verification included reading the 3MF build items and vertices, decoding GLB positions and placements, and inspecting STEP entities.

Local checks

  • 288 workspace tests passed, including all 90 forma-print tests. The run used CI’s existing exclusion for the 10,000-operation fuzz test.
  • Workspace Clippy passed for all targets and features with warnings treated as errors.

@wrong-nebula
wrong-nebula merged commit 20fd619 into main Dec 5, 2026
3 checks passed
@wrong-nebula
wrong-nebula deleted the codex/fix-print-pipeline branch December 5, 2026 18:21
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