feat(fold): emit per-face isometries for the future 3D viewer (#31) #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vscode-isometries"
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?
Groundwork for the deferred 3D-viewer / animation slice, on top of the live preview (#60). Emits each folded face's exact 2D isometry so a future renderer can reconstruct the fold motion.
fold_emitaddsbeloch:faces_matrixper folded frame (insidefolded_frame_of_state), one[m00, m01, m10, m11, tx, ty]per face fromf.Fold_state.iso, and a top-levelbeloch:named_lines_frame: "creasePattern"declaring the coordinate frame the named lines live in.fold2svgconsumesbeloch:faces_matrixthrough the existingfoldedFrame(fold, step)selector, so it reads the selected step's matrices.beloch:faces_matrixcount matches frame count per file (e.g.cube-root.fold: 4 frames, 4 matrices).No behaviour change to the preview — this is pure additional FOLD metadata.
dune runtestgreen (186 tests),tools/test16/16, extensionbun test14/14.For #31. Includes the #31 spec + plan (per-face isometry emission, named-line frame declaration). The animation/interpolation that consumes these is still deferred to the 3D-viewer slice (#30, ADR 0015).