mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Removed incorrect refs to anchor, spin, orient in grid2d()
This commit is contained in:
parent
19e6ec8093
commit
e83835403d
2 changed files with 4 additions and 4 deletions
|
@ -433,7 +433,7 @@ module zdistribute(spacing=10, sizes=undef, l=undef)
|
||||||
// %polygon(poly);
|
// %polygon(poly);
|
||||||
//
|
//
|
||||||
// Example: Using `$row` and `$col`
|
// Example: Using `$row` and `$col`
|
||||||
// grid2d(spacing=[8,8], cols=8, rows=8, anchor=LEFT+FRONT)
|
// grid2d(spacing=[8,8], cols=8, rows=8)
|
||||||
// color(($row+$col)%2?"black":"red")
|
// color(($row+$col)%2?"black":"red")
|
||||||
// cube([8,8,0.01], center=false);
|
// cube([8,8,0.01], center=false);
|
||||||
//
|
//
|
||||||
|
@ -459,10 +459,10 @@ module grid2d(size=undef, spacing=undef, cols=undef, rows=undef, stagger=false,
|
||||||
spc = vmul(scalar_vec3(spacing), scl);
|
spc = vmul(scalar_vec3(spacing), scl);
|
||||||
maxcols = ceil(siz.x/spc.x);
|
maxcols = ceil(siz.x/spc.x);
|
||||||
maxrows = ceil(siz.y/spc.y);
|
maxrows = ceil(siz.y/spc.y);
|
||||||
grid2d(spacing=spacing, cols=maxcols, rows=maxrows, stagger=stagger, scale=scale, in_poly=in_poly, anchor=anchor, spin=spin, orient=orient) children();
|
grid2d(spacing=spacing, cols=maxcols, rows=maxrows, stagger=stagger, scale=scale, in_poly=in_poly) children();
|
||||||
} else {
|
} else {
|
||||||
spc = [siz.x/cols, siz.y/rows];
|
spc = [siz.x/cols, siz.y/rows];
|
||||||
grid2d(spacing=spc, cols=cols, rows=rows, stagger=stagger, scale=scale, in_poly=in_poly, anchor=anchor, spin=spin, orient=orient) children();
|
grid2d(spacing=spc, cols=cols, rows=rows, stagger=stagger, scale=scale, in_poly=in_poly) children();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
spc = is_list(spacing)? point3d(spacing) : vmul(scalar_vec3(spacing), scl);
|
spc = is_list(spacing)? point3d(spacing) : vmul(scalar_vec3(spacing), scl);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,150];
|
BOSL_VERSION = [2,0,151];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue