Models/box.foldscript

main
fold/Models/box.foldscript history · blame · raw

100 lines · 3788 bytes

  1{
  2  "creasePattern": "box-cp.fold",
  3  "title": "Box",
  4  "steps": [
  5    {
  6      "kind": "foldAndUnfold",
  7      "instruction": "Valley fold in half along the diagonal, bottom corner to the top corner, and unfold.",
  8      "creases": [[[1.5, 2], [2, 2]]],
  9      "movingSide": [[2, 1.25]],
 10      "peakAngles": [180]
 11    },
 12    {
 13      "kind": "foldAndUnfold",
 14      "instruction": "Valley fold in half along the other diagonal, left corner to the right corner, and unfold.",
 15      "creases": [[[2, 1.5], [2, 2]]],
 16      "movingSide": [[1.25, 2]],
 17      "peakAngles": [180]
 18    },
 19    {
 20      "kind": "fold",
 21      "instruction": "Valley fold the bottom and top corners to the centre.",
 22      "creases": [[[1.5, 1], [2, 1]], [[2, 3], [2.5, 3]]],
 23      "movingSide": [[2.1, 0.75], [2.1, 3.25]],
 24      "angles": [180, 180]
 25    },
 26    {
 27      "kind": "fold",
 28      "instruction": "Valley fold the left and right corners to the centre.",
 29      "creases": [[[1, 1.5], [1, 2]], [[3, 2], [3, 2.5]]],
 30      "movingSide": [[0.75, 2.1], [3.25, 2.1]],
 31      "angles": [180, 180]
 32    },
 33    {
 34      "kind": "foldAndUnfold",
 35      "instruction": "Valley fold the top and bottom edges to the centre line, and unfold.",
 36      "creases": [[[2, 2.5], [2.5, 2.5]], [[1.5, 1.5], [2, 1.5]]],
 37      "movingSide": [[2.25, 2.75], [1.75, 1.25]],
 38      "peakAngles": [180, 180]
 39    },
 40    {
 41      "kind": "foldAndUnfold",
 42      "instruction": "Valley fold the left and right edges to the centre line, and unfold.",
 43      "creases": [[[1.5, 2], [1.5, 2.5]], [[2.5, 1.5], [2.5, 2]]],
 44      "movingSide": [[1.25, 2.25], [2.75, 1.75]],
 45      "peakAngles": [180, 180]
 46    },
 47    {
 48      "kind": "fold",
 49      "instruction": "Unfold the top and bottom corners.",
 50      "creases": [[[2, 3], [2.5, 3]], [[1.5, 1], [2, 1]]],
 51      "movingSide": [[2.1, 3.25], [2.1, 0.75]],
 52      "angles": [0, 0]
 53    },
 54    {
 55      "kind": "fold",
 56      "instruction": "Fold the left and right sides up along the creases to stand upright.",
 57      "creases": [[[1.5, 2], [1.5, 2.5]], [[2.5, 1.5], [2.5, 2]]],
 58      "movingSide": [[1.25, 2.25], [2.75, 1.75]],
 59      "angles": [90, 90],
 60      "viewpoint": {"eye": [1, -2, 2], "up": [0, 1, 0]}
 61    },
 62    {
 63      "kind": "fold",
 64      "instruction": "Raise the top end into a wall, pushing the corners in along the diagonal creases so that they fold flat against it.",
 65      "creases": [
 66        [[1, 2.5], [1.5, 2.5]], [[1.5, 2.5], [2, 2.5]], [[1.5, 2.5], [1, 3]], [[1.5, 2.5], [1.5, 3]],
 67        [[2.5, 2.5], [3, 2.5]], [[2.5, 2.5], [3, 3]], [[2.5, 2.5], [2.5, 3]]
 68      ],
 69      "movingSide": [[1.1, 2.6], [2, 2.75], [1.4, 2.9], [2.9, 2.6], [2.6, 2.9]],
 70      "angles": [90, 90, -180, 180, 90, -180, 180]
 71    },
 72    {
 73      "kind": "fold",
 74      "instruction": "Fold the top flap over the wall and down into the box.",
 75      "creases": [[[2, 3], [2.5, 3]], [[1.5, 3.5], [2, 3.5]]],
 76      "movingSide": [[2.1, 3.25], [2.1, 3.75]],
 77      "angles": [180, -90]
 78    },
 79    {
 80      "kind": "fold",
 81      "instruction": "Raise the bottom end into a wall in the same way, pushing the corners in.",
 82      "creases": [
 83        [[1, 1.5], [1.5, 1.5]], [[1.5, 1.5], [2, 1.5]], [[1.5, 1.5], [1, 1]], [[1.5, 1.5], [1.5, 1]],
 84        [[2.5, 1.5], [3, 1.5]], [[2.5, 1.5], [3, 1]], [[2.5, 1.5], [2.5, 1]]
 85      ],
 86      "movingSide": [[1.1, 1.4], [2, 1.25], [1.4, 1.1], [2.9, 1.4], [2.6, 1.1]],
 87      "angles": [90, 90, -180, 180, 90, -180, 180],
 88      "repeatOf": 9,
 89      "viewpoint": {"eye": [1, 2, 2], "up": [0, -1, 0]}
 90    },
 91    {
 92      "kind": "fold",
 93      "instruction": "Fold the bottom flap over the wall and down into the box.",
 94      "creases": [[[1.5, 1], [2, 1]], [[1.5, 0.5], [2, 0.5]]],
 95      "movingSide": [[1.9, 0.75], [1.9, 0.25]],
 96      "angles": [180, -90],
 97      "repeatOf": 10
 98    }
 99  ]
100}