From 79b060c9b2f80a684c050e1909350e3b68334ff6 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sun, 14 Jan 2024 14:26:01 -0800 Subject: [PATCH] initial commits --- index.xhtml | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/index.xhtml b/index.xhtml index 73a8a60..978eb4f 100644 --- a/index.xhtml +++ b/index.xhtml @@ -74,6 +74,82 @@ for (a =[x1,x2,x3]){echo(a);} And it is a good idea to explicitly size your model when preparing it for 3D-printing.

+
+

Cuboids

+

+ One basic 3D shape that OpenSCAD provides built-in support for is the cuboid. +

+

+ To create a cuboid use the cube command. + For example: +

+
+

+cube([50,75,100]);
+
+
+

+ 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]. +

+
+
+

Spheres

+

+ 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]. +

+
+
+

Cylinders, Cones, and Truncated Cones

+

+ 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]. +

+