0% found this document useful (0 votes)
166 views1 page

Openscad

This document provides a cheat sheet summarizing the syntax and functions of OpenSCAD, an open-source 3D modeling program. It includes sections on syntax, transformations, mathematical functions, 2D/3D shapes, Boolean operations, modifiers, list comprehensions, and special variables. The cheat sheet is intended to serve as a quick reference guide for OpenSCAD's capabilities and commands.

Uploaded by

Smee Again
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views1 page

Openscad

This document provides a cheat sheet summarizing the syntax and functions of OpenSCAD, an open-source 3D modeling program. It includes sections on syntax, transformations, mathematical functions, 2D/3D shapes, Boolean operations, modifiers, list comprehensions, and special variables. The cheat sheet is intended to serve as a quick reference guide for OpenSCAD's capabilities and commands.

Uploaded by

Smee Again
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

OpenSCAD CheatSheet v2015.

03
Syntax Transformations Mathematical Functions Other
var = value; translate([x,y,z]) abs concat echo(…)
module name(…) { … } rotate([x,y,z]) sign lookup for (i = [start:end]) { … }
name();
scale([x,y,z]) sin str for (i = [start:step:end]) { … }
function name(…) = …
resize([x,y,z],auto) cos chr for (i = […,…,…]) { … }
name();
mirror([x,y,z]) tan search intersection_for(i = [start:end]) { … }
include <….scad>
multmatrix(m) acos version intersection_for(i = [start:step:end]) { … }
use <….scad>
color("colorname",alpha) asin version_num intersection_for(i = […,…,…]) { … }
color([r,g,b,a]) atan norm if (…) { … }
2D offset(r|delta,chamfer) atan2 cross assign (…) { … }
circle(radius | d=diameter) hull() floor parent_module(idx) import("….stl")
square(size,center) minkowski() round linear_extrude(height,center,convexity,twist,slices,scale)
square([width,height],center) ceil rotate_extrude(angle,convexity)
polygon([points]) ln surface(file = "….dat",center,convexity)
Boolean operations
polygon([points],[paths]) len projection(cut)
text(text, size, font, union() let render(convexity)
     halign, valign, spacing, difference() log children([idx])
     direction, language, script) intersection() pow
sqrt
3D List Comprehensions Special variables
Modifier Characters exp
rands Generate [ for (i = range|list) i ] $fa minimum angle
sphere(radius | d=diameter)
* disable Conditions [ for (i = …) if (condition(i)) i ] $fs minimum size
cube(size, center) min
! show only Assignments [ for (i = …) let (assignments) a ] $fn number of fragments
cube([width,depth,height], center) max
# highlight / debug $t animation step
cylinder(h,r|d,center)
% transparent / background $vpr viewport rotation angles in degrees
cylinder(h,r1|d1,r2|d2,center)
polyhedron(points, triangles, convexity) $vpt viewport translation
$vpd viewport camera distance
$children number of module children

Links: Official website | Code | Issues | Manual | MCAD library | Forum | Other links

Edit me on GitHub!
By Peter Uithoven @ Fablab Amersfoort (CC-BY)

You might also like