OpenSCAD CheatSheet

v2014.03

2D

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

Modifier Characters

*
disable
!
show only
#
highlight
%
transparent

List Comprehensions

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

Special variables

$fa
minimum angle
$fs
minimum size
$fn
number of fragments
$t
animation step
$vpr
viewport rotation angles in degrees
$vpt
viewport translation
$vpd
viewport camera distance
$children
 number of module children