OpenSCAD User Manual
Unlike most free software for creating 3D models (such as the well-known application Blender), OpenSCAD does not focus on the artistic aspects of 3D modelling, but instead focuses on the CAD aspects. So it might be the application you are looking for when you are planning to create 3D models of machine parts, but probably is not what you are looking for when you are more interested in creating computer-animated movies or organic life-like models.
OpenSCAD, unlike many CAD products, is not an interactive modeler. Instead it is something like a 2D/3D-compiler that reads in a program file that describes the object and renders the model from this file. This gives you (the designer) full control over the modelling process. This enables you to easily change any step in the modelling process and make designs that are defined by configurable parameters.
OpenSCAD has two main operating modes, Preview and Render. Preview is relatively fast using 3D graphics and the computer's GPU, but is an approximation of the model and can produce artifacts; Preview uses OpenCSG and OpenGL. Render generates exact geometry and a fully tessellated mesh. It is not an approximation and as such it is often a lengthy process, taking minutes or hours for larger designs. Render uses CGAL as its geometry engine.
OpenSCAD provides two types of 3D modelling:
- Constructive Solid Geometry (CSG)
- extrusion of 2D primitives into 3D space.
Autocad DXF files are used as the data exchange format for 2D outlines. In addition to 2D paths for extrusion it is also possible to read design parameters from DXF files. Besides DXF files, OpenSCAD can read and create 3D models in the STL and OFF file formats.
OpenSCAD can be downloaded from https://www.openscad.org/. More information is available on the mailing list. OpenSCAD can also be tried online at http://openscad.net/, which is a partial port of OpenSCAD for the web.
Fablab Lannion (France) edited a nice French-language interactive tutorial that you might appreciate.
A "cheat sheet" is a useful quick reference for the OpenSCAD language, with each item linking back to this Wikibook.
Periodically the two manuals below get cleaned up or have major transitions. Consider archiving the manuals prior to starting a major update.
This can be done for the two 'printable version' links below to the Internet Archive
- 2018-04-25 The OpenSCAD User Manual - Print Version & The OpenSCAD Language - Print Version
- 2019-07-22 The OpenSCAD User Manual Which includes links to the archives of the above two printed versions (as of this date).
The OpenSCAD User Manual
- First Steps
- The OpenSCAD User Interface
- Input Devices
- Import - STL, 3MF, OFF, AMF, DXF, SVG, CSG
- Export - STL, 3MF, OFF, AMF, DXF, SVG, CSG, PNG
- Commented Example Projects
- Using an external Editor with OpenSCAD
- Integration with other applications
- Using OpenSCAD in a command line environment
- Building OpenSCAD from Sources
- Frequently Asked Questions
- Tips and Tricks
- Command Glossary - Very short name and syntax reference
The OpenSCAD Language Reference
- The OpenSCAD Language
- 3D objects -
- 2D Objects
- Boolean combination
- Other Functions and Operators
- Conditional and Iterator Functions - for, intersection_for, if, conditional ? :, assign
- Mathematical Operators - General, Vectors, Matrix multiplication
- Mathematical Functions
- String Functions - str, chr, ord
- Type Test Functions - is_undef, is_bool, is_num, is_string, is_list
- List Comprehensions
- Other Language Features - Special '$' variables, echo, render, surface, search , version(), version_num(), parent_module(n) and $parent_modules, assert
- User-Defined Functions and Modules - Functions, Modules, Children
- Debugging aids - % # ! * echo
- External libraries and code files
Work in progress
This section contains documentation about ongoing work which is available as experimental features in snapshot versions of OpenSCAD or not yet integrated at all and pending in a branch or pull-request at the OpenSCAD github repository.