Axis Ranges

X: to
Y: to
Z: to

Command Cheatsheet

Scene Control

range(x1, x2, y1, y2, z1, z2)

Shapes

beam(x1, y1, z1, x2, y2, z2)

beam(x, y, z, w, d, h)

cylinder(x, y, z|z1, h, r|d, rotx, roty)

tube(x, y, z|z1, h, r1|d1, r2|d2, rotx, roty)

cone(x, y, z, r|d, h, rotx, roty)

cone(x1,y1,z1,r1|d1, x2,y2,z2,r2|d2, rotx, roty)

sphere(x, y, z, r|d)

torus(x,y,z, r1|d1, r2|d2, rotx, roty)

pie(x,y,z|z1,h,r|d,a1,a2,rotx,roty)

helix(x,y,z|z1,h|z2,r1|d1,r2|d2,a,pitch,rotx,roty)

poly(x1,y1,z1, ..., x8,y8,z8)

text(x, y, z, size, h, text, rotx, roty, rotz)

Operations

+ Union (optional, default)

- Subtraction

System Variables

$color = 'yellow' or '#ff00ff'

$alpha = 0.5 (0=invisible, 1=opaque)

$fragments = 32 (shape detail)

All shapes/functions also accept color='...' and alpha=... parameters to override the system variables for one command.

Variables

myVar = 10 * 2

Custom Functions

myFunc(p1, p2) {
  // ... csg operations using p1, p2
  // $color can be used here too!
}
// Usage
myFunc(p1=10, p2=20)

Error