UsingOpenSCAD
From Clothbot
(Difference between revisions)
Revision as of 20:36, 7 November 2009 (edit) AndrewPlumb (Talk | contribs) ← Previous diff |
Revision as of 20:37, 7 November 2009 (edit) AndrewPlumb (Talk | contribs) Next diff → |
||
Line 13: | Line 13: | ||
== Variable Declarations == | == Variable Declarations == | ||
- | Variables are defined using '''<name>''' '''=''' '''<value>'''' ''';''' syntax. | + | Variables are defined using '''<name>''' '''=''' '''<value>''' ''';''' syntax. |
my_variable = 10; | my_variable = 10; | ||
+ | |||
+ | == Module Declarations == | ||
+ | |||
+ | A module with no arguments: | ||
+ | |||
+ | module peg() | ||
+ | { | ||
+ | union() { | ||
+ | translate([0,0,320-overlap]) cylinder(h=180+overlap, r=245, center=false); | ||
+ | cylinder(h=320, r=245+55, center=false); | ||
+ | } | ||
+ | } |
Revision as of 20:37, 7 November 2009
Contents |
Using OpenSCAD
This page is to hold my notes on using OpenSCAD.
Syntax
Comments
Comments are escaped with the // character prefix.
// This is a comment
Variable Declarations
Variables are defined using <name> = <value> ; syntax.
my_variable = 10;
Module Declarations
A module with no arguments:
module peg() { union() { translate([0,0,320-overlap]) cylinder(h=180+overlap, r=245, center=false); cylinder(h=320, r=245+55, center=false); } }