# Difference between revisions of "Intro to OpenSCAD"

From Mod Lab

(wip) |
m (→Translation, Rotation and Link Matrices) |
||

(6 intermediate revisions by one user not shown) | |||

Line 6: | Line 6: | ||

Links to downloadable binaries and source repositories can be found under the '''Download Releases''' section of the main [http://www.openscad.org/ OpenSCAD] web page. | Links to downloadable binaries and source repositories can be found under the '''Download Releases''' section of the main [http://www.openscad.org/ OpenSCAD] web page. | ||

+ | |||

+ | === RTFM === | ||

+ | |||

+ | When in doubt, check the manual: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual | ||

== Basics == | == Basics == | ||

+ | |||

+ | === Primitive 3D Shapes === | ||

+ | |||

+ | ==== Cube ==== | ||

+ | |||

+ | ==== Cylinder ==== | ||

+ | |||

+ | ==== Sphere ==== | ||

+ | |||

+ | ==== Polyhedron ==== | ||

+ | |||

+ | === Movement === | ||

+ | |||

+ | ==== Translation, Rotation and Link Matrices ==== | ||

+ | |||

+ | See [http://en.wikipedia.org/wiki/Forward_kinematics Forward kinematics] for link matrix mathematical definition. | ||

+ | |||

+ | === Geometric Boolean Operations === | ||

+ | |||

+ | ==== Union ==== | ||

+ | |||

+ | ==== Difference ==== | ||

+ | |||

+ | ==== Intersection ==== | ||

+ | |||

+ | |||

=== Primitive 2D Shapes === | === Primitive 2D Shapes === | ||

Line 13: | Line 43: | ||

square(), circle(), polygon() | square(), circle(), polygon() | ||

− | === | + | - See example015.scad |

+ | |||

+ | ==== Linear Extrude ==== | ||

+ | |||

+ | ==== Rotate Extrude ==== | ||

+ | |||

+ | ==== Projection - 2D from 3D ==== | ||

+ | |||

+ | |||

+ | === Object and Code Re-Use === | ||

+ | |||

+ | ==== 2D Import - DXF ==== | ||

+ | |||

+ | ==== 3D Import - STL ==== | ||

+ | |||

+ | ==== Include and Use SCAD Files ==== | ||

+ | |||

+ | == Hierarchy == | ||

+ | |||

+ | === Modules as Objects === | ||

+ | |||

+ | === Modules as Operators === | ||

+ | |||

+ | === Optimizing for 3D Printing === | ||

+ | |||

+ | == Other Useful Tips'n'Tricks == | ||

− | + | === Command Line Options === | |

− | === | + | === MCAD Library === |

− | === | + | === Reference Objects for Position, Orientation and Scale === |

## Latest revision as of 09:17, 24 April 2012

## Contents

## Overview

OpenSCAD is **Open** source software for creating **S**olid 3D **CAD** objects. While not the primary focus, closed 2D shapes can also be created.

## Where to Get It

Links to downloadable binaries and source repositories can be found under the **Download Releases** section of the main OpenSCAD web page.

### RTFM

When in doubt, check the manual: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual

## Basics

### Primitive 3D Shapes

#### Cube

#### Cylinder

#### Sphere

#### Polyhedron

### Movement

#### Translation, Rotation and Link Matrices

See Forward kinematics for link matrix mathematical definition.

### Geometric Boolean Operations

#### Union

#### Difference

#### Intersection

### Primitive 2D Shapes

square(), circle(), polygon()

- See example015.scad