Modelita cheatsheet
top, rim, edge, merged side, tube, face tent, inner, vertex, flip reshaped untouched
Each picture colours only what its last step made. Click a word to open it in the playground.
Words
x[+z] C | read right to left; the seed is last |
x[sel] | the faces it acts on; all if left out |
x(0.6) | numbers; any left out take the defaults |
x{roof} | label every face this step makes |
x^3 | repeat the step |
a + b | shapes side by side: several bodies |
name = word | a name for a shape, or for steps |
name(h) = word | steps with a parameter, used as name(1.2) |
name[s] = word | steps with a selector, used as name[top]; all if left out |
; note | a comment, to the end of the line |
export "f.obj" word | write the shape as OBJ |
Seeds
C(w, d, h)box, 2 × 2 × 2
T(r)tetrahedron
O(r)octahedron
I(r)icosahedron
D(r)dodecahedron
P5(r, h)prism, any n ≥ 3
A5(r, h)antiprism
Y5(r, h)pyramid
T O I D have circumradius √3, like the cube.
Modelling
lift(1)one block per connected region
scale(0.5)each region about its centre
push(0.5)faces along their normals
mergeundo a kis: merged
flipturn the edge between two triangles
Symmetry
mirror[seam]join the shape to its reflection across the seam: build half, get the whole
Transforms
move(x, y, z)shift; numbers left out are 0
turn(z, y, x)degrees about each axis, z first: counterclockwise from above
stretch(x, y, z)along each axis; numbers left out are 1
Without a selector, the whole shape; with one, the picked faces' corners. turn and stretch act about each region's centre, and each body is a region of its own.
Copies
array(n, x, y, z)n in a row, each moved (x, y, z); 2, 1, 0, 0
spin(n)n around the vertical through the origin; 6
Conway
n kd | z dk | j da | e aa |
o daa | m kda | b ta | s dg |
With a selector they act on part of the shape: d[top] x[+z] C
Selectors
+x -x +y -y +z -z | faces facing that way |
top roof | a role, or a label |
all new | every face; what the last step made |
n4 #3 | faces with 4 corners; face number 3 |
a&b a|b | both; either |
!a ~a | not; the faces bordering a |
( ) | grouping; ! ~ bind tightest, then &, then | |