From 7c737fd0a335630c5b72f89380f3f0a55b4d2d5e Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 27 Jul 2024 09:36:51 -0400 Subject: [PATCH] doc tweaks --- beziers.scad | 2 ++ distributors.scad | 8 ++++++-- vnf.scad | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/beziers.scad b/beziers.scad index 3b597e0..aa222b8 100644 --- a/beziers.scad +++ b/beziers.scad @@ -1444,6 +1444,8 @@ function bezier_patch_normals(patch, u, v) = // Function: bezier_sheet() +// Synopsis: Creates a thin sheet from a bezier patch by extruding in normal to the patch +// SynTags: VNF // Topics: Bezier Patches // See Also: bezier_patch_normals(), vnf_sheet() // Description: diff --git a/distributors.scad b/distributors.scad index 143dc14..8b072aa 100644 --- a/distributors.scad +++ b/distributors.scad @@ -852,21 +852,25 @@ function grid_copies(spacing, n, size, stagger=false, inside=undef, nonzero, p=_ // yrot(90) cylinder(h=20, r1=5, r2=0); // color("red",0.333) yrot(90) cylinder(h=20, r1=5, r2=0); module rot_copies(rots=[], v, cp=[0,0,0], n, sa=0, offset=0, delta=[0,0,0], subrot=true) -{ +{ echo("hi"); req_children($children); sang = sa + offset; + echo(sang=sang); angs = !is_undef(n)? (n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) : rots==[]? [] : assert(!is_string(rots), "Argument rots must be an angle, a list of angles, or a range of angles.") assert(!is_undef(rots[0]), "Argument rots must be an angle, a list of angles, or a range of angles.") [for (a=rots) a]; + echo(angs=angs); + echo(subrot=subrot); for ($idx = idx(angs)) { $ang = angs[$idx]; $axis = v; translate(cp) { + echo(rotang=$ang); rotate(a=$ang, v=v) { - translate(delta) { + translate(delta) { echo(sang=sang); rot(a=(subrot? sang : $ang), v=v, reverse=true) { translate(-cp) { children(); diff --git a/vnf.scad b/vnf.scad index 8a8664b..5b9106f 100644 --- a/vnf.scad +++ b/vnf.scad @@ -1762,7 +1762,7 @@ function vnf_small_offset(vnf, delta, merge=true) = [offset,faces]; // Function: vnf_sheet() -// Synopsis: Extends a VNF into a thin sheet by forming a small offset +// Synopsis: Extends a VNF into a thin sheet by extruding normal to the VNF // SynTags: VNF // Topics: VNF Manipulation // See Also: vnf_small_offset(), vnf_boundary(), vnf_merge_points()