OpenSCAD User Manual

Introduction
 OpenSCAD is software for creating solid 3D CAD objects. It is free software and available for GNU/Linux, Microsoft Windows and Mac OS X.

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.

SVG is used for 2D while Autocad DXF files can be used as well for 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 open 3mf,  STL,  OFF and many more file formats.

OpenSCAD can be downloaded from https://www.openscad.org/. More information is available on the mailing list.

Additional Resources
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
 * 2020-12-11 The OpenSCAD User Manual - Print Version & The OpenSCAD Language - Print Version

= The OpenSCAD User Manual =


 * 1)  Introduction
 * 2)  First Steps
 * 3)  The OpenSCAD User Interface
 * 4)  Input Devices
 * 5)  Customizer
 * 6)  Import - STL, 3MF, OFF, AMF, DXF, SVG, CSG
 * 7) SVG Import
 * 8)  Export - STL, 3MF, OFF, AMF, DXF, SVG, CSG, PNG
 * 9) STL Export
 * 10) CSG Export
 * 11) DXF Extrusion
 * 12) Other 2D formats
 * 13)  Example Projects
 * 14) Strandbeest
 * 15)  Paths
 * 16)  Using an external Editor with OpenSCAD
 * 17)  Integration with other applications
 * 18)  Using OpenSCAD in a command line environment
 * 19)  Building OpenSCAD from Sources
 * 20) Building on Linux/UNIX
 * 21) Cross-compiling for Windows on Linux or Mac OS X
 * 22) Building on Windows (Outdated)
 * 23) Building on Windows (New)
 * 24) Building on Mac OS X
 * 25) Submitting patches
 * 26)  Frequently Asked Questions
 * 27)  Libraries
 * 28)  Tips and Tricks
 * 29)  Command Glossary - Very short name and syntax reference

= The OpenSCAD Language Reference =


 * 1) The OpenSCAD Language
 * 2) General - READ THIS FIRST - comments, values and data types, variables, vectors, getting input
 * 3) 3D objects -
 * 4) 3D Primitive Solids - cube, sphere, cylinder, polyhedron
 * 5) 3D to 2D Projection
 * 6) 2D Objects
 * 7) 2D Primitives - square, circle, polygon
 * 8) Text - Generate text using installed or user supplied font files.
 * 9) 2D to 3D - linear_extrude, rotate_extrude
 * 10)  Transform
 * 11) color
 * 12) rotate, translate, mirror, multmatrix
 * 13) scale, resize
 * 14) offset, minkowski, hull
 * 15) Combining transformations
 * 16) Boolean combination
 * 17) union, difference, intersection, render
 * 18)  Other Functions and Operators
 * 19) Conditional and Iterator Functions - for, intersection_for, if,  conditional ? :,  assign,  let
 * 20) Mathematical Operators - General, Vectors, Matrix multiplication
 * 21) Mathematical Functions
 * 22) Trigonometric (cos sin tan acos asin atan atan2)
 * 23) Other (abs ceil concat cross exp floor ln len let log lookup max min norm pow rands round sign sqrt)
 * 24) String Functions - str, chr, ord
 * 25) Type Test Functions - is_undef, is_bool, is_num, is_string, is_list
 * 26) List Comprehensions
 * 27) Other Language Features - Special ', echo, render, surface, search, version, version_num, parent_module(n) and $parent_modules, assert
 variables, [[OpenSCAD_User_Manual/Other Language Features#Echo Statements|echo]], [[OpenSCAD_User_Manual/Other Language Features#Render|render]], [[OpenSCAD_User_Manual/Other Language Features#surface|surface]], [[OpenSCAD_User_Manual/Other Language Features#Search|search]] , [[OpenSCAD_User_Manual/Other Language Features#OpenSCAD Version|version, version_num]], [[OpenSCAD_User_Manual/Other Language Features#parent_module.28n.29_and_.24parent_modules|parent_module(n) and $parent_modules]], [[OpenSCAD_User_Manual/Other Language Features#assert|assert]]
 * 28) User-Defined Functions and Modules - Functions, Modules, Children
 * 29) Debugging aids -  % # ! * echo
 * 30) External libraries and code files
 * 31) include - SCAD, CSG
 * 32) use  - SCAD
 * 33) import - STL, OFF, DXF
 * 34) import_dxf - Deprecated
 * 35) import_stl - Deprecated
 * 36) export - STL, OFF, AMF, 3MF, DXF, SVG, PNG, CSG
 * 37) surface - PNG

= 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

Tutorial de OpenScad OpenSCAD Руководство пользователя по OpenSCAD