OpenSCAD User Manual

Introduction
OpenSCAD is an opensource application for modelling and animating Solid CAD objects in three dimensions.
It is offered as free software and is available for several platforms.
OpenSCAD provides a functional descriptive language that may be used to numerically describe a 3D object using primitive shapes assembled and combined using 3D boolean operations. It is well suited to Computer-aided design tasks that will lead to production using CNC machining or 3D Printing processes.
OpenSCAD is not an interactive modelling tool in the way that Blender or AutoCAD's apps are. Rather it uses a compiler to generate a run-time process to draw the 3D shapes specified by the instructions in an OpenSCAD file. Its user interface does offer a feature rich editing panel for the .scad programs currently loaded, an on-screen preview, a rendering engine to produce images, and a limited animation function.
OpenSCAD renders in two modes, Preview and Render.
Older versions of openSCAD use OpenCSG and OpenGL to perform fast, frame buffer based rendering for the on-screen preview. More recent versions of the Development Snapshot have switched to Manifold for preview rendering. This change lifts several limitations, not least of which are artifacts that occur on convoluted surfaces.
Another rendering engine is used to fully tessellate a model into a polygon mesh that is then used to create an image. The tessellation stage is preformed using the CGAL geometry engine.
OpenSCAD is available via the common distribution methods as listed on the downloads page.
Participation
Information about OpenSCAD development is available on GitHub.
The ways to participate in the community include the mailing list, and chatting on IRC.
Suggestions for features, feedback and bug reports may be written using GitHub Issues, but please read the preferred Way of Work before submitting.
Operations Manual
These pages were originally created as part of the OpenSCAD User Manual, now in the process of being restructured.
Category:Books with print version#OpenSCAD%20User%20ManualThe OpenSCAD Language Reference
Category:Books with print version#OpenSCAD%20User%20Manual- The OpenSCAD Language
- General - READ THIS FIRST - comments, values and data types, variables, vectors, objects, getting input
- 3D objects -
- 2D Objects
- 2D Primitives - square, circle, polygon
- Text - Generate text using installed or user supplied font files; functions to retrieve text metrics.
- 2D to 3D - linear_extrude, rotate_extrude
- Transform
- Boolean combination
- Other Functions and Operators
- Conditional and Iterator Functions - for, intersection_for, if, conditional ? :, assign, let
- Mathematical Operators - General, Vectors, Matrix multiplication
- Mathematical Functions
- Trigonometric (cos sin tan acos asin atan atan2)
- Other (abs ceil concat cross exp floor ln len let log lookup max min norm pow rands round sign sqrt)
- String Functions - str, chr, ord
- Type Test Functions - is_undef, is_bool, is_num, is_string, is_list, is_object
- 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
- include - SCAD, CSG
- use - SCAD
- import - STL, OFF, DXF
- import_dxf - Deprecated
- import_stl - Deprecated
- export - STL, OFF, AMF, 3MF, DXF, SVG, PNG, CSG
- surface - PNG
Examples
Build Manual
Additional Resources
- Command Glossary - Very short name and syntax reference
- Frequently Asked Questions
- Tips and Tricks
A clear guided introduction to using OpenSCAD and to the OpenSCAD language is available in the OpenSCAD Tutorial.
For Teachers: a basic 25-slide presentation from 2014 is available under GNUFDL to walk your students through the process of using OpenSCAD here.
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.
A list of books can be found here.
History
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 Wayback Machine no longer has a free user requested site archive, so below is just the two 'printable version' manuals
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.
- Work in progress Category:Alphabetical/O Category:Book:OpenSCAD User Manual#%20 Category:Subject:3D graphics software#OpenSCAD%20User%20Manual