OpenSCAD CheatSheet

v2015.03 CW

Object construction and Rendering

2D

circle(r | d)import("….dxf|.svg")square(size | [width,height],center)polygon(points, paths?,convexity?)text(t, size, font, halign, valign, spacing,direction, language, script)

Rendering control

$fa minimum angle $fs minimum facet size $fn number of facets $t animation time

Render Modifiers

* disable ! show only this subtree # highlight % show in preview only

Viewpoint control

$vpr rotation in degree $vpt translation $vpd camera distance

Syntax

List Comprehensions

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

Libraries

include <….scad> import and executeuse <….scad> only import

Functions