docs/authoring/sampan.md

main
fold/docs/authoring/sampan.md rendered · source · history · blame · raw

132 lines · 6328 bytes

6 symbols in this file
  1# Sampan
  2
  3The traditional sampan, also called the inside-out boat, in its short form.
  4Six steps: a fold-and-unfold, three folds, the turn inside out and a
  5turn-over. No coupled steps and no non-rigid steps. The model ends standing as
  6an open tray, not flat.
  7
  8`Models/sampan-cp.fold` and `Models/sampan.foldscript` compile to
  9`Packages/FoldKit/Sources/Models/Resources/sampan.fold`:
 10
 11```bash
 12swift run --package-path Packages/FoldKit foldc Models/sampan.foldscript \
 13  -o Packages/FoldKit/Sources/Models/Resources/sampan.fold
 14```
 15
 16`everyShippedModelRegeneratesFromItsScript` checks that the shipped file is
 17what the script compiles to.
 18
 19## Sequence and source
 20
 21The short form: a cupboard base (steps 1–2), then the sequence's last four
 22folds from it: the four corners to the centre line, the edges to the centre
 23line again, the turn inside out and a turn-over. No published diagram of this
 24short form was found, and none was copied.
 25
 26The long form is described in Origami Expressions, *Traditional Origami Sampan
 27Instructions Step by Step*
 28(https://origamiexpressions.com/traditional-sampan). It starts from a blintz
 29base, refolds two corners, folds the edges to the centre line, folds the
 30corners in twice and the points to the centre line, and turns the model inside
 31out. Its ends are covered. The short form ends in the same way from a plain
 32cupboard base, with the corners folded once and open ends.
 33
 341. Fold and unfold the centre line y = 2, bottom edge to top.
 352. Fold the top and bottom edges to the centre line (y = 3 and y = 1; two
 36   axes).
 373. Fold the four corners to the centre line, each through both layers (four
 38   axes).
 394. Fold the top and bottom edges to the centre line again (y′ = 2½ and 1½
 40   through all layers; two axes).
 415. Turn inside out: both sides swing out and round behind, 180 → −90 (two
 42   axes).
 436. Turn over (vertical axis), so that the boat stands upright.
 44
 45Viewpoints: eye (0, 0, 1), up (0, 1, 0) for steps 1–4; eye (1, −2, 2), up
 46(0, 1, 0) for steps 5–6. The walls stand in planes y = const and the floor in
 47z = const; the oblique eye lies in neither, so no face is seen edge-on.
 48
 49## Crease pattern
 50
 51Constructed from the sequence above, not taken from a published crease
 52pattern. The sheet is the square [0, 4]², its top side up. Every coordinate
 53is a multiple of ½.
 54
 55Each crease is folded through every layer, so its image in the crease pattern
 56is one segment per layer. 26 vertices, 49 edges (10 boundary) and 24 convex
 57faces, so no subdivision edges.
 58
 59| Crease | First creased | Final |
 60|---|---|---|
 61| y = 2 (the centre line) | 1 | F |
 62| y = 1, y = 3 (every segment) | 2 | V 180 |
 63| base corners: (0, 2)–(1, 3), (3, 3)–(4, 2), (0, 2)–(1, 1), (3, 1)–(4, 2) | 3 | V 180 |
 64| flap corners: (0, 4)–(1, 3), (3, 3)–(4, 4), (0, 0)–(1, 1), (3, 1)–(4, 0) | 3 | M −180 |
 65| y = 2½, y = 1½, x ∈ [½, 3½] (the sides' hinges in the base) | 4 | M −90 |
 66| y = 3½, y = ½, x ∈ [½, 3½] (the same hinges in the flaps) | 4 | V 90 |
 67| x = ½, x = 3½ in the base corners (y ∈ [2½, 3] and [1, 1½]) | 4 | V 90 |
 68| x = ½, x = 3½ in the flap corners (y ∈ [3, 3½] and [½, 1]) | 4 | M −90 |
 69
 70The base corner diagonals are split at (½, 2½) and the like, the flap corner
 71diagonals at (½, 3½) and the like, where the x = ½ and x = 3½ segments meet
 72them. The pattern's assignments are the last frame's; the centre line ends
 73flat.
 74
 75## The turn inside out
 76
 77After step 4, a section across the middle has seven layers in one strip: the
 78base's middle B at the back, then on each half, from the back, the flap's tip
 79U, the flap's next strip T and the base's edge strip S. S is hinged to B and T
 80to U on the same line, y′ = 2½ (or 1½); S and T are joined at the centre
 81line. Each side is one rigid unit: S, T and the parts of both corner
 82triangles beyond x = ½ and x = 3½.
 83
 84Step 5 turns each unit about its hinge line from 180 to −90, out and round
 85behind, while B, U and the corner triangles' tips stay still. The thumbs go
 86between T and U, under the folded edges along the centre line. Afterwards the
 87outside of the flat model, the back of B and the outer face of S, is the
 88inside of the boat, and U and T are its outer skin.
 89
 90Every edge the step creases lies on one of the two hinge lines. `foldc` names
 91the base's hinge (y = 2½ or 1½) as the axis; the flap's hinge and the corner
 92segments on the same line close coaxial loops and their end angles are
 93measured. No loop is off a hinge line, so no axis is solved and both axes are
 94linear.
 95
 96Classification: rigid.
 97
 98- `foldc` raises no `noRigidMotion` and no `curveTooCoarse`: the loops close
 99  for any angle.
100- Nothing interpenetrates at 64 samples. Each wall sweeps the space outside
101  its hinge, where there is no paper.
102- The validator's layer rules and `layerMotionDefects` pass.
103- Intermediate states (t = ¼, ½, ¾, 1) were drawn offline and checked by eye.
104  They have not been checked in the app.
105
106In paper the pointed ends are usually pulled up a little as the model turns
107inside out. That bend has no crease and the rigid model does not show it: the
108tips stay in the plane of the floor and the walls' ends slope from the hinge
109ends at x = ½ and 3½ to the top edge at x = 1 and 3.
110
111## Layer-order overrides
112
113None. `foldc`'s guess passes the validator, the interpenetration check and
114`layerMotionDefects`. The final stacks were checked by hand by probing points
115in frame 5 and sorting their faces by `faceOrders`:
116
117- the floor, from the inside of the boat out: B, U, then at the tips the
118  flap's corner and the base's corner;
119- each wall, from the inside out: S, T, the flap's corner, the base's corner.
120
121These are the concentric folds at each hinge: B–S innermost, then U–T, then
122the two corner layers.
123
124## Known gap: the covered-end long form
125
126The long form is not shipped (decision 0003, *Decision*, item 4). As scripted,
127its turn inside out has no rigid end state: the base hexagon's corners are
128reverse vertices, so long walls at 90° put the slanted walls at 83.6°. The
129rigid walls-up path from step 13 interpenetrates from its first samples, and
130bending the walls (`spikes/bending`, case `sampanbend`) passes their layers
131through each other and ends as a shallow dish, not a boat. Shipping it needs a
132stack-coherent bending model and a target shape taken from the real model.