OpenSCAD CheatSheet



circle(radius | d=diameter) square(size,center) square([width,height],center) polygon([points]) polygon([points],[paths]) text(text, size, font,
     halign, valign, spacing,
     direction, language, script)

Modifier Characters

show only
highlight / debug
transparent / background

List Comprehensions

Generate [ for (i = range|list) i ] Conditions [ for (i = …) if (condition(i)) i ] Assignments [ for (i = …) let (assignments) a ]

Special variables

minimum angle
minimum size
number of fragments
animation step
viewport rotation angles in degrees
viewport translation
viewport camera distance
 number of module children