mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 03:11:47 +00:00
test(cad): lock construction-geometry flag with real regression tests
The construction flag was already honored (excluded from the extrude wire in SketchEngine.cpp, participates in the solver, and serialized) but the existing "construction line excluded" test was a false tripwire: its construction line ran corner-to-corner inside the square, so the bbox was unchanged whether or not the line was excluded. - Strengthen that test: the construction line now runs (-30,0)->(30,0) outside the profile, so an exclusion regression breaks the closed wire / bbox. - Add a serialize/deserialize round-trip test asserting construction survives. - Lock the flag on-disk: add Sketch_Ctor to the golden fixture with a real edge + a construction edge, and assert both flags survive the binary recipe. Test-only; no kernel change. Recipe version stays 2 (construction was already a serialized field). Suite: 72 cases / 1246 assertions green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BVzKmX6Y1aEteit1HTXG4Q
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
161d006e92
commit
62d39fba27
Binary file not shown.
Reference in New Issue
Block a user