From 79b060c9b2f80a684c050e1909350e3b68334ff6 Mon Sep 17 00:00:00 2001
From: Charles Iliya Krempeaux
+ One basic 3D shape that OpenSCAD provides built-in support for is the cuboid. +
+
+ To create a cuboid use the cube
command.
+ For example:
+
+ The parameter to the cube
command specifies the width, length, and height of the cuboid.
+ Note that the cube
command will put one corner of the cuboid at the origin — [0,0,0]
.
+
+ Another basic 3D shape that OpenSCAD provides built-in support for is the sphere. +
+
+ To create a sphere use the sphere
command.
+ For example:
+
+sphere(20);
+
+
+ The paraemter to the sphere
command specifies the radius of the sphere.
+ Note that the
sphere
command will put the center of the sphere at the origin —
[0,0,0]
.
+
+ Three other basic 3D shape that OpenSCAD provides built-in support for is the cylinder, the cone, and the truncated cone. +
+
+ To create a cylinder, cone, or truncated cone use the cylinder
command.
+ For example, this is a cylinder:
+
+cylinder(h=50, r1=20, r2=20);
+
+
+ Note that r1
and r2
have the same value.
+ When r1
and r2
have the same value, you get a cylinder (rathe than a cone or a strong>truncated cone).
+
+ And, for example, this is a cone: +
+
+cylinder(h=50, r1=20, r2=0);
+
+
+ In that example, r2
is zero.
+ But having r1
be zero (and r2
not be zero) would also produce a cone.
+
+ And, for example, this is a truncated cone: +
+
+cylinder(h=50, r1=20, r2=5);
+
+
+ In that example, r2
is smaller than r1
(and neither is zero).
+ But having r1
be smaller than r2
would also be a truncated cone.
+
+ Note that the cylinder
command will put the center of one end of the bottom circle at the origin —
[0,0,0]
.
+