feat(fold2svg): --exploded layer view + current-verb legend #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.11-exploded"
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?
Render slice #1 — make the folded layer stack visible, and fix stale labels. Tooling only (
tools/fold2svg.mjs+ README); no core/.belchange.--exploded— a new flag (implies--folded) that draws thefoldedFormframe with each layer nudged by a small offset, so the otherwise-coincident flat layers separate and you can see the stack (e.g.fold-quarter.belshows four offset squares).axiom 2 · fold to→axiom 2 · map onto,axiom 5 · bisect→axiom 5 · map onto.--exploded, and fixes a stalefold-corner.belreference (that example was replaced bycomplex-fold.belin #10) tofold-quarter.bel.Assumptions made at forks (no input requested):
--explodedis a separate flag, not a change to--folded.--foldedkeeps rendering the geometrically-exact overlapping silhouette;--explodedis the "spread the layers" view. This preserves both rather than overloading--folded.faces_verticesas its stacking order. Beloch emits faces bottom→top, so this is correct for our output; a general FOLD with arbitrary face order + onlyfaceOrderswould need the order derived fromfaceOrdersinstead (not done — out of scope for our own tool).axiom 2andaxiom 5now readmap ontoin the legend (the surface verb is the samemap … onto …; the axiom number disambiguates). Kept the distinct colours.fold-quarter.bel—--folded(exact overlapping silhouette) vs--exploded(layers offset, joined at the fold hinges by translucent green gussets so the 4-layer stack reads as one accordion):--folded--exploded