Sie sind auf Seite 1von 3

OpenSCAD User Manual

larger designs; Render uses CGAL as its geometry engine.


OpenSCAD provides two types of 3D modelling,
Constructive Solid Geometry (CSG) or extrusion of 2D
primitives into 3D space.
Autocad DXF les 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 les.
Besides DXF les OpenSCAD can read and create 3D
models in the STL and OFF le formats.
OpenSCAD can be downloaded from http://openscad.
org/. You may nd extra information in the mailing list.
People who don't want to (or can't) install new software
on their computer may be able to use OpenJSCAD ( http:
//OpenJSCAD.org/ ), a port of OpenSCAD that runs in
a web browser, if your browser supports WebGL

A pt_BR translation of this document is avaliable on


GitHub repository (not completed/on development)

Introduction

Teachers: A basic 25 slide presentation is made freely


OpenSCAD is a software for creating solid 3D CAD ob- available under GNUFDL to walk your students through
jects.
the process of using OpenSCAD here
It is free software and available for GNU/Linux, MS WinFablab Lannion (France) edited a nice (french speaking)
dows and Apple OS X.
interactive tutorial that you might appreciate.
Unlike most free software for creating 3D models (such
as the well-known application Blender), OpenSCAD does First Steps
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 2 Overview
create 3D models of machine parts, but probably is not
what you are looking for when you are more interested in
1. First Steps
creating computer-animated movies or organic life-like
2. The OpenSCAD User Interface
models.
3. The OpenSCAD Language

OpenSCAD, unlike many CAD product, is not an interactive modeller. Instead it is something like a 2D/3Dcompiler that reads in a program le that describes the
object and renders the model from this le. This gives
you (the designer) full control over the modelling process
and enables you to easily change any step in the modelling
process or make designs that are dened by congurable
parameters.

(a) General - READ THIS FIRST. Comments,


variables & input, dxf_dim()
(b) Primitive Solids - cube, sphere, cylinder &
polyhedron
(c) Mathematical Operators
(d) Mathematical Functions

OpenSCAD has two main operating modes, Preview and


Render. Preview is relatively fast using 3D graphics and
the computers 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

i. Trigonometric (cos sin tan acos asin atan


atan2)
ii. Other (abs ceil concat cross exp oor ln
len let log lookup max min norm pow
rands round sign sqrt)
(e) String Functions - str, chr
1

2
(f) List Comprehensions
(g) Transformations - Size & placement. scale,
resize, rotate, translate, mirror, multmatrix,
oset, color, minkowski & hull
(h) Conditional and Iterator Functions - for, if &
assign
(i) CSG Modelling - Combine primitives. union,
dierence, intersection & render
(j) Modier Characters - Debugging aids, % # !
*
(k) Modules - Write your
tive/transformation function

own

primi-

(l) User-Dened Functions


(m) Include Statement
(n) Other Language Features - Special '$' variables, echo, render, surface, search , version()
& version_num()
4. Using the 2D Subsystem
(a) 2D Primitives - square, circle, polygon &
import_dxf
(b) Text - Generate text using installed or user supplied font les.
(c) 3D to 2D Projection - projection
(d) 2D to 3D Extrusion - linear_extrude &
rotate_extrude
(e) DXF Extrusion
(f) Other 2D formats
5. STL Import and Export
(a) STL Import
(b) STL Export
6. Commented Example Projects
7. Using an external Editor with OpenSCAD
8. Using OpenSCAD in a command line environment
9. Building OpenSCAD from Sources
(a) Building on Linux/UNIX
(b) Cross-compiling for Windows on Linux or
Mac OS X
(c) Building on Windows (Outdated)
(d) Building on Windows (New)
(e) Building on Mac OS X
(f) Submitting patches
10. Libraries
11. Command Glossary - Very short name and syntax
reference

OVERVIEW

Text and image sources, contributors, and licenses

3.1

Text

OpenSCAD User Manual Source: http://en.wikibooks.org/wiki/OpenSCAD%20User%20Manual?oldid=2834723 Contributors: Xania,


Adrignola, Tenbergen, VanishedUser sdu9aya9fasdsopa, Cliordwolf, Clothbot, Markhobley, Kintel, Chrysn, NicholasCLewis, Theorbtwo,
Lenbok, Dbright, Bradpitcher, Msquare, Mimarx, Torwag, Leaderboard, Tp42, Wanick~enwikibooks, Tannoz, Scapel78 and Anonymous:
13

3.2

Images

File:00%.svg Source: http://upload.wikimedia.org/wikipedia/commons/d/d6/00%25.svg License: Public domain Contributors: Based on


the XML code of Image:25%.svg Original artist: Siebrand
File:25_percents.svg Source: http://upload.wikimedia.org/wikipedia/commons/c/ce/25_percent.svg License: CC0 Contributors: File:
25%.svg Original artist: Ftiercel
File:50_percents.svg Source: http://upload.wikimedia.org/wikipedia/commons/6/62/50_percents.svg License: CC0 Contributors: File:
50%.svg Original artist: Ftiercel
File:75_percents.svg Source: http://upload.wikimedia.org/wikipedia/commons/6/62/75_percent.svg License: CC0 Contributors: File:
75%.svg Original artist: Ftiercel
File:Loupe_light.svg Source:
http://upload.wikimedia.org/wikipedia/commons/0/0c/Loupe_light.svg License:
Public domain
Contributors: modied version of <a href='//commons.wikimedia.org/wiki/File:Gnome-searchtool.svg' class='image'><img alt='Gnomesearchtool.svg' src='//upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Gnome-searchtool.svg/50px-Gnome-searchtool.svg.png'
width='50' height='50' srcset='//upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Gnome-searchtool.svg/75px-Gnome-searchtool.
svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Gnome-searchtool.svg/100px-Gnome-searchtool.svg.png 2x'
data-le-width='60' data-le-height='60' /></a> Original artist: Watchduck (a.k.a. Tilman Piesk)
File:OpenSCAD-logo.png Source: http://upload.wikimedia.org/wikipedia/commons/9/97/OpenSCAD-logo.png License: CC BY-SA
3.0 Contributors: Own work Original artist: Marius Kintel
File:Printer.svg Source: http://upload.wikimedia.org/wikipedia/commons/2/23/Printer.svg License: Public domain Contributors: The
Tango! Desktop Project Original artist: The people from the Tango! project

3.3

Content license

Creative Commons Attribution-Share Alike 3.0