B OpenSCAD Visual Reference
This appendix is a quick visual reference for drawing, transforming, and combining the 3D and 2D shapes covered in this book. Paired with each screenshot is an example OpenSCAD statement that can be used to generate the image. In some cases, we’ve included a “shadow” object to illustrate what shapes looked like before an operation took place. Example code statements don’t generate these shadow objects.
3D Primitives
Cuboid:
cube([30, 20, 10]);
Centered cuboid:
cube([30, 20, 10], center=true);
Sphere:
sphere(10); ...
Get Programming with OpenSCAD now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.