Difference between revisions of "Intro to OpenSCAD"

From Mod Lab
Jump to: navigation, search
(Where to Get It)
m (Translation, Rotation and Link Matrices)
 
(3 intermediate revisions by one user not shown)
Line 13: Line 13:
 
== Basics ==
 
== Basics ==
  
=== Primitive 2D Shapes ===
+
=== Primitive 3D Shapes ===
  
square(), circle(), polygon()
+
==== Cube ====
  
- See example015.scad
+
==== Cylinder ====
  
=== Primitive 3D Shapes ===
+
==== Sphere ====
  
cube(), sphere(), cylinder(), polyhedron()
+
==== 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 ===
 
=== Geometric Boolean Operations ===
Line 31: Line 37:
 
==== Intersection ====
 
==== Intersection ====
  
=== Import, Extrude and Projection Operators ===
 
  
==== 2D Import - DXF ====
 
  
==== 3D Import - STL ====
+
=== Primitive 2D Shapes ===
 +
 
 +
square(), circle(), polygon()
 +
 
 +
- See example015.scad
  
 
==== Linear Extrude ====
 
==== Linear Extrude ====
Line 43: Line 51:
 
==== Projection - 2D from 3D ====
 
==== Projection - 2D from 3D ====
  
=== Include and Use Files ===
+
 
 +
=== Object and Code Re-Use ===
 +
 
 +
==== 2D Import - DXF ====
 +
 
 +
==== 3D Import - STL ====
 +
 
 +
==== Include and Use SCAD Files ====
  
 
== Hierarchy ==
 
== Hierarchy ==

Latest revision as of 08:17, 24 April 2012

Overview

OpenSCAD is Open source software for creating Solid 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

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