diff --git a/bosl1compat.scad b/bosl1compat.scad index 686a33f..262035e 100644 --- a/bosl1compat.scad +++ b/bosl1compat.scad @@ -1,13 +1,10 @@ module translate_copies(a=[[0,0,0]]) move_copies(a) children(); -module xmove(x) right(x) children(); -module ymove(y) back(y) children(); -module zmove(z) up(z) children(); module xspread(spacing, n, l, sp) xcopies(spacing=spacing, n=n, l=l, sp=sp) children(); module yspread(spacing, n, l, sp) ycopies(spacing=spacing, n=n, l=l, sp=sp) children(); module zspread(spacing, n, l, sp) zcopies(spacing=spacing, n=n, l=l, sp=sp) children(); -module spread(p1=[0,0,0], p2=[10,0,0], spacing, l, n=2) line_of(p1=p1, p2=p2, spacing=spacing, l=l, n=n) children(); +module spread(p1=[0,0,0], p2=[10,0,0], spacing, l, n=2) line_copies(p1=p1, p2=p2, spacing=spacing, l=l, n=n) children(); module grid_of(xa=[0],ya=[0],za=[0],count,spacing) grid3d(xa=xa, ya=ya, za=za, n=count, spacing=spacing) children(); module xring(n=2,r=0,sa=0,cp=[0,0,0],rot=true) xrot_copies(n=n,r=r,sa=sa,cp=cp,subrot=rot) children(); diff --git a/shapes2d.scad b/shapes2d.scad index f325022..abd6614 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -1599,9 +1599,9 @@ function reuleaux_polygon(n=3, r, d, anchor=CENTER, spin=0) = // txt = "This is the string."; // line_copies(spacing=[10,-5],n=len(txt)) // text(txt[$idx], size=10, anchor=CENTER); -// Example: Using arc_of() distributor +// Example: Using arc_copies() distributor // txt = "This is the string"; -// arc_of(r=50, n=len(txt), sa=0, ea=180) +// arc_copies(r=50, n=len(txt), sa=0, ea=180) // text(select(txt,-1-$idx), size=10, anchor=str("baseline",CENTER), spin=-90); module text(text, size=10, font="Helvetica", halign, valign, spacing=1.0, direction="ltr", language="en", script="latin", anchor="baseline", spin=0) { no_children($children);