The crane and the sampan (Task 15, second part) !10

merged merged by cmc on 2026-10-23 03:59 UTC · krz/fold:crane into main

Discussion

cmc
  • Decision 0003 (docs/decisions/0003-bending-openings.md, spike in spikes/bending):
    • Reverse folds open rigidly: the whole near side turns about the spine's line, using bend lines. The head opens nested on the body's spine (openOn).
    • The pop is a banded slerp, at a default opening of 20° from flat.
    • The render mesh is a Delaunay triangulation.
    • During a pop, faces inside one near-coplanar cluster are left to the layer order.
    • The two halves' coincident spine-line vertices are tied.
  • foldc:
    • A null-space step toward the linear angles in the loop solver, so a degree-6 vertex can collapse.
    • Spine edges are decided by the paper's halves.
    • A nested opening's crease line is recorded in the pop's spine.
    • Solved curves are rebuilt to second order at their ends.
  • The crane, 16 steps:
    • step 4, the preliminary-base collapse, and the petal folds run on solved curves;
    • the neck, tail and head are inside reverse folds (pop strain 3.37%, 3.27%, 1.71%);
    • 64 layer-order overrides, recorded in docs/authoring/crane.md.
  • The short-form sampan, an open tray. The covered-end long form is a known gap.
  • Notation: an edge under a flat seam in an upper layer is hidden.
  • App tests:
    • the audit walks all four models;
    • the drag helper goes through a step's turns;
    • the fallback throw fits the view.
  • The plan and spec are updated for decision 0003.

Verification:

  • swift test --package-path Packages/FoldKit: 254 tests pass.
  • foldlint is clean on all four models.
  • xcodebuild … -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.5' test passed at 44a08ad; since then only comments, docs and a package test have changed.

Closes #7