docs/authoring/crane.md
166 lines · 7440 bytes
7 symbols in this file
1# Crane
2
3The traditional orizuru. Sixteen steps:
4
5- pre-creasing, the preliminary base and the bird base;
6- narrowing the legs;
7- three inside reverse folds (neck, tail, head);
8- the wings down.
9
10Steps 4, 6 and 9 are coupled and have solved curves. Steps 13–15 are flagged non-rigid and
11open, pop and close (decisions 0002 and 0003). The model ends with its wings spread at 90°,
12not flat.
13
14`Models/crane-cp.fold` and `Models/crane.foldscript` compile to
15`Packages/FoldKit/Sources/Models/Resources/crane.fold`:
16
17```bash
18swift run --package-path Packages/FoldKit foldc Models/crane.foldscript \
19 -o Packages/FoldKit/Sources/Models/Resources/crane.fold
20```
21
22`everyShippedModelRegeneratesFromItsScript` checks that the shipped file is what the script
23compiles to.
24
25Shipped `.fold` files come from the debug build, as `swift run foldc` above builds it. A
26release build of `foldc` can differ, by up to 9e-7°, in the solved curves of a step whose
27spare freedom R69 holds near its linear angles. That is the crane's step 4, the collapse.
28Both builds are deterministic.
29
30## Crease pattern and its source
31
32The bird base is decision 0002's reading of the flat crane in Origami Simulator
33(`assets/Origami/flat_crane.svg`, github.com/amandaghassaei/OrigamiSimulator, MIT). It is
34rebuilt exactly on the unit square, with h = (√2 − 1)/2 and corners
35c00 (0, 0), c10 (1, 0), c11 (1, 1), c01 (0, 1):
36
37- the midline cross from the centre O (½, ½) to the kite ends L (h, ½), B (½, h), R (1 − h, ½)
38 and T (½, 1 − h);
39- the outer midline segments from the kite ends to the edges, which the petal folds unfold;
40- the diagonal c10–c01. The other diagonal is not creased;
41- the eight 22.5° kite creases from the corners;
42- the petal hinges L–B and R–T.
43
44Every later crease is the preimage, in each layer the fold moves, of the fold's line in the
45folded frame before it. Each therefore runs through every layer of its flap:
46
47- **Narrowing (steps 10 and 12):** lines from each leg's tip at 11.25° to the centre line.
48 Each fold carries five layers: the leg's two front layers, the side flap above them, and the
49 edges of the petal and of the top triangle joined to them.
50- **Neck and tail (steps 13 and 14):** the raised creases of decision 0003. They run from the
51 centre line at view height 0.47, 22.5° below horizontal, through all eight layers of the leg.
52- **Head (step 15):** horizontal, across the neck 0.33 from the reverse vertex, through the
53 neck's layers.
54- **Wings (step 16):** the horizontal line through the shoulders, the narrowed body's top
55 corners at view height 0.6756, through the front wing's layers and the back wing's.
56
57The bend lines are three edges: (0, 0)–(0.354, 0.354)–(½, ½) on the uncreased diagonal.
58
59- They lie on the spine's line, through the front wing's centre and the top triangle under it
60 (decision 0003).
61- They are `F` in every frame and creased by no step.
62- While each reverse fold is open, the front wing's half folds along them by up to 160° and
63 flattens again.
64
65The pattern has 62 vertices, 130 edges and 69 convex faces. Its assignments are the last
66frame's; edges that end flat are `F`.
67
68`file_author` is "Traditional"; `file_title` is "Crane".
69
70## Sequence
71
72The usual teaching sequence, with the kite folds made as fold-and-unfolds so that each petal
73fold starts from the preliminary base. That is the state decision 0002 measured.
74
75| Step | Fold |
76|---|---|
77| 1 | Fold and unfold the diagonal c10–c01 (valley) |
78| 2 | Fold and unfold the midline y = ½ (mountain) |
79| 3 | Fold and unfold the midline x = ½ (mountain) |
80| 4 | Collapse the preliminary base in one step from the pre-creased square |
81| 5 | Kite folds, front, fold and unfold (two axes) |
82| 6 | Petal fold, front |
83| 7 | Turn over |
84| 8 | Kite folds, back (`repeatOf` 5) |
85| 9 | Petal fold, back (`repeatOf` 6) |
86| 10 | Narrow the legs, front (two axes) |
87| 11 | Turn over |
88| 12 | Narrow the legs, back (`repeatOf` 10) |
89| 13 | Inside reverse fold the left leg up: the neck |
90| 14 | Inside reverse fold the right leg up: the tail (`repeatOf` 13) |
91| 15 | Inside reverse fold the end of the neck down: the head |
92| 16 | Wings down: the front one toward the viewer, the back one away, each 90° |
93
94Viewpoints:
95
96- Steps 1–15 use eye (0, 0, 1) with up (1, 1, 0), so the square is a diamond with c00 at the
97 bottom.
98- Step 16 uses eye (0.141, 0.707, 1) with the same up, so the spread wings are not edge-on.
99
100## Coupled steps
101
102- **Step 4, the collapse.** The centre is a degree-6 vertex (four midlines and two diagonal
103 halves) with three degrees of freedom.
104 - The first crease, O–B, drives. Four creases are solved, and their curves hold the spare
105 freedom near the linear angles (R69). The last, O–L, closes the loop.
106 - It closes, nothing interpenetrates, and the layer rules and `layerMotionDefects` pass.
107 - Classification: rigid.
108- **Steps 6 and 9, the petal folds.** The hinge drives from 0 to 180. The kites and the inner
109 kites are solved toward −180, and the outer midline segments unfold from −180 to 0.
110 - The two loops at the kite ends share the hinge.
111 - The solved kites match decision 0002's case 7: −18.0°, −41.9° and −85.5° at hinge 45°, 90°
112 and 135°.
113 - Classification: rigid.
114
115All other folds are single-axis, or two independent axes (steps 5, 8, 10, 12 and 16).
116
117## Reverse folds
118
119Each reverse fold names its spine and opens at the default 20° from flat; no `openAngle` is
120scripted.
121
122- **Neck and tail:** each opens the whole near side, the half of the square with x + y < 1,
123 about the spine's line. The bend lines let the front wing's half turn with it.
124- **Head:** opens nested on the body's spine (`openOn`). The neck's creases follow its
125 reversed branch, with solved curves in the open and the close.
126
127| Step | Pop strain (edge, Delaunay mesh) | Mesh interpenetration, all phases | Drag through the pop (R75) |
128|---|---|---|---|
129| 13, neck | 3.37% | none | followed |
130| 14, tail | 3.27% | none | followed |
131| 15, head | 1.71% | none | straight-line fallback |
132
133The pop strains were 3.50%, 3.28% and 1.71% before the ties of R78. The ties hold the two
134halves' coincident fold edges on the spine line together during the pop. These are the legs'
135former edge folds, which narrowing laid on the centre line.
136
137Each reverse fold's open and close are isometric, and at 97% of the close the tip lies
138between the layers (`FourModelTests`).
139
140For the drag, at each step's authored viewpoint:
141
142- the neck's and the tail's pops move a covering axis's centroid at least 8 points on screen,
143 so the drag follows them;
144- the head's pop moves less, so its segment is the straight line down, 160 points per unit of t
145 or half the paper view's height if that is less (R81).
146
147## Layer-order overrides
148
149Each reverse fold puts its tip between layers, which the compiler's guess cannot do. In each
150of steps 13, 14 and 15, every tip face of the near half is put above every tip face of the far
151half it overlaps once reflected in the crease. The near half is x + y < 1; the far half is the
152rest.
153
154| Step | Overrides |
155|---|---|
156| 13 | 32 (the head's crease splits the neck's tip faces) |
157| 14 | 16 |
158| 15 | 16 |
159
160No other order is overridden. The guess passes the validator, the interpenetration check and
161`layerMotionDefects` everywhere else.
162
163## Checked by eye
164
165The golden images (`crane-1` … `crane-16`) and the app's screenshots of every step were
166inspected.