From 3f4d5e65f789f0fb0afea597fb3c49916b033926 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 20 Jan 2023 16:55:56 -0500 Subject: [PATCH] doc fixes --- shapes2d.scad | 2 +- tutorials/Attachments.md | 4 ++-- tutorials/FractalTree.md | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/shapes2d.scad b/shapes2d.scad index 1dc1413..6b16fd8 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -1211,7 +1211,7 @@ module jittered_poly(path, dist=1/512) { // // Arguments: // r = radius of circular part of teardrop. (Default: 1) -// ang = angle of hat walls from the Y axis. (Default: 45 degrees) +// ang = angle of hat walls from the Y axis (half the angle of the peak). (Default: 45 degrees) // cap_h = if given, height above center where the shape will be truncated. // --- // d = diameter of circular portion of bottom. (Use instead of r) diff --git a/tutorials/Attachments.md b/tutorials/Attachments.md index b631c2b..45df460 100644 --- a/tutorials/Attachments.md +++ b/tutorials/Attachments.md @@ -572,13 +572,13 @@ case. ```openscad-3D include cube(50,center=true) - attach(RIGHT)cylinder(d1=30,d2=15,l=25); + attach(RIGHT)cylinder(d1=30,d2=15,h=25); ``` ```openscad-3D include cube(50,center=true) - attach(RIGHT+TOP)cylinder(d1=30,d2=15,l=25); + attach(RIGHT+TOP)cylinder(d1=30,d2=15,h=25); ``` In the second example, the child object points diagonally away diff --git a/tutorials/FractalTree.md b/tutorials/FractalTree.md index f2d5b01..da49095 100644 --- a/tutorials/FractalTree.md +++ b/tutorials/FractalTree.md @@ -9,7 +9,7 @@ Firstoff, include the BOSL2 library, then make a starting module that just has a ```openscad-3D include module tree(l=1500, sc=0.7) - cylinder(l=l, d1=l/5, d2=l/5*sc); + cylinder(h=l, d1=l/5, d2=l/5*sc); tree(); ``` @@ -20,9 +20,9 @@ You can attach a branch to the top of the trunk by using `attach()` as a child o ```openscad-3D include module tree(l=1500, sc=0.7) - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) - yrot(30) cylinder(l=l*sc, d1=l/5*sc, d2=l/5*sc*sc); + yrot(30) cylinder(h=l*sc, d1=l/5*sc, d2=l/5*sc*sc); tree(); ``` @@ -33,10 +33,10 @@ Instead of attaching each branch individually, you can make multiple copies of o ```openscad-3D include module tree(l=1500, sc=0.7) - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) zrot_copies(n=2) // Replicate that branch - yrot(30) cylinder(l=l*sc, d1=l/5*sc, d2=l/5*sc*sc); + yrot(30) cylinder(h=l*sc, d1=l/5*sc, d2=l/5*sc*sc); tree(); ``` @@ -47,7 +47,7 @@ Since branches look much like the main trunk, we can make the tree recursive. Do ```openscad-Med include module tree(l=1500, sc=0.7, depth=10) - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) if (depth>0) { // Important! zrot_copies(n=2) @@ -63,7 +63,7 @@ A flat planar tree isn't what we want, so lets bush it out a bit by rotating eac ```openscad-Med include module tree(l=1500, sc=0.7, depth=10) - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) if (depth>0) { zrot(90) // Bush it out @@ -80,7 +80,7 @@ Let's add leaves. They look much like squashed versions of the standard teardrop ```openscad-Big include module tree(l=1500, sc=0.7, depth=10) - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) if (depth>0) { zrot(90) @@ -104,7 +104,7 @@ nested `recolor()`. include module tree(l=1500, sc=0.7, depth=10) recolor("lightgray") - cylinder(l=l, d1=l/5, d2=l/5*sc) + cylinder(h=l, d1=l/5, d2=l/5*sc) attach(TOP) if (depth>0) { zrot(90)