On Folding
summary
A Scala crease pattern generator builds crease segments from points and three Huzita‑Justin axioms, outputs SVG and a folded view via Amanda Ghassaei’s simulator, and runs real‑time Maekawa and Kawasaki checks per vertex; valid vertices produce an opaque locally‑flat type, then a search solves the NP‑hard layer ordering to confirm global flat‑foldability. The UI supports tiling and recursive nesting (water‑bomb tessellation example), finds many invalid assignments quickly, and successfully generates several foldable patterns for physical folding.
AI-written summary · about
