mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Add example image fixes for paths.scad
This commit is contained in:
parent
1e3f18f695
commit
2834e8bc56
2 changed files with 15 additions and 15 deletions
18
paths.scad
18
paths.scad
|
@ -918,40 +918,40 @@ module path_extrude(path, convexity=10, clipsize=100) {
|
|||
// Example(2D):
|
||||
// heptagon = regular_ngon(n=7, or=10);
|
||||
// stroke(heptagon, width=1, closed=true);
|
||||
// color("purple") path_spread(heptagon, n=9, closed=true) square([0.5,3],anchor=FRONT);
|
||||
// color("purple") path_spread(heptagon, n=9, closed=true) rect([0.5,3],anchor=FRONT);
|
||||
// Example(2D): Direction at the corners is the average of the two adjacent edges
|
||||
// heptagon = regular_ngon(n=7, or=10);
|
||||
// stroke(heptagon, width=1, closed=true);
|
||||
// color("purple") path_spread(heptagon, n=7, closed=true) square([0.5,3],anchor=FRONT);
|
||||
// color("purple") path_spread(heptagon, n=7, closed=true) rect([0.5,3],anchor=FRONT);
|
||||
// Example(2D): Don't rotate the children
|
||||
// heptagon = regular_ngon(n=7, or=10);
|
||||
// stroke(heptagon, width=1, closed=true);
|
||||
// color("red") path_spread(heptagon, n=9, closed=true, rotate_children=false) square([0.5,3],anchor=FRONT);
|
||||
// color("red") path_spread(heptagon, n=9, closed=true, rotate_children=false) rect([0.5,3],anchor=FRONT);
|
||||
// Example(2D): Open path, specify `n`
|
||||
// sinwav = [for(theta=[0:360]) 5*[theta/180, sin(theta)]];
|
||||
// stroke(sinwav,width=.1);
|
||||
// color("red")path_spread(sinwav, n=5) square([.2,1.5],anchor=FRONT);
|
||||
// color("red") path_spread(sinwav, n=5) rect([.2,1.5],anchor=FRONT);
|
||||
// Example(2D)): Open path, specify `n` and `spacing`
|
||||
// sinwav = [for(theta=[0:360]) 5*[theta/180, sin(theta)]];
|
||||
// stroke(sinwav,width=.1);
|
||||
// color("red")path_spread(sinwav, n=5, spacing=1) square([.2,1.5],anchor=FRONT);
|
||||
// color("red") path_spread(sinwav, n=5, spacing=1) rect([.2,1.5],anchor=FRONT);
|
||||
// Example(2D)): Closed path, specify `n` and `spacing`, copies centered around circle[0]
|
||||
// circle = regular_ngon(n=64,or=10);
|
||||
// stroke(circle,width=.1,closed=true);
|
||||
// color("red")path_spread(circle, n=10, spacing=1, closed=true) square([.2,1.5],anchor=FRONT);
|
||||
// color("red") path_spread(circle, n=10, spacing=1, closed=true) rect([.2,1.5],anchor=FRONT);
|
||||
// Example(2D): Open path, specify `spacing`
|
||||
// sinwav = [for(theta=[0:360]) 5*[theta/180, sin(theta)]];
|
||||
// stroke(sinwav,width=.1);
|
||||
// color("red")path_spread(sinwav, spacing=5) square([.2,1.5],anchor=FRONT);
|
||||
// color("red") path_spread(sinwav, spacing=5) rect([.2,1.5],anchor=FRONT);
|
||||
// Example(2D): Open path, specify `sp`
|
||||
// sinwav = [for(theta=[0:360]) 5*[theta/180, sin(theta)]];
|
||||
// stroke(sinwav,width=.1);
|
||||
// color("red")path_spread(sinwav, n=5, sp=18) square([.2,1.5],anchor=FRONT);
|
||||
// color("red") path_spread(sinwav, n=5, sp=18) rect([.2,1.5],anchor=FRONT);
|
||||
// Example(2D):
|
||||
// wedge = arc(angle=[0,100], r=10, $fn=64);
|
||||
// difference(){
|
||||
// polygon(concat([[0,0]],wedge));
|
||||
// path_spread(wedge,n=5,spacing=3) fwd(.1)square([1,4],anchor=FRONT);
|
||||
// path_spread(wedge,n=5,spacing=3) fwd(.1) rect([1,4],anchor=FRONT);
|
||||
// }
|
||||
// Example(Spin): 3d example, with children rotated into the plane of the path
|
||||
// tilted_circle = lift_plane(regular_ngon(n=64, or=12), [0,0,0], [5,0,5], [0,2,3]);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,282];
|
||||
BOSL_VERSION = [2,0,283];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue