Add an integration fixture for the folded named-line overlay #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The folded-view construction overlay in
tools/fold2svg.mjs— named lines clipped per-face and drawn on the folded form — has no integration fixture. Every committed example whose named lines reach the folded view has them as crease-duplicates, which the overlay skips, sotools/test/foldview.test.mjsnever exercises thelineToFaceclip path end-to-end — only thelineToFaceunit.This surfaced in #31: the per-frame clip fix (
bcb2c10) rests on thelineToFaceunit test plus a structural argument (the folded loop now clips against each frame's own table polygon, so no crease-pattern index can leak in), but a regression in the overlay itself would fail no test. Add a fixture that combines a genuine auxiliary (non-crease) named line with multiple--stepframes, and assert the drawn construction line lands within the selected frame's faces.For #31.