mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-18 17:39:37 +00:00
check that rows is an integer for grid2d
This commit is contained in:
parent
c86d36d122
commit
f982b96d12
1 changed files with 1 additions and 0 deletions
|
@ -654,6 +654,7 @@ module grid_copies(spacing, n, size, stagger=false, inside=undef, nonzero)
|
||||||
is_vector(n)? assert(len(n)==2) n :
|
is_vector(n)? assert(len(n)==2) n :
|
||||||
size!=undef && spacing!=undef? v_floor(v_div(size,spacing))+[1,1] :
|
size!=undef && spacing!=undef? v_floor(v_div(size,spacing))+[1,1] :
|
||||||
[2,2];
|
[2,2];
|
||||||
|
dummy2 = assert(is_int(n[0]) && is_int(n[1]), "The number of rows/columns must be an integer");
|
||||||
offset = v_mul(spacing, n-[1,1])/2;
|
offset = v_mul(spacing, n-[1,1])/2;
|
||||||
|
|
||||||
poslist =
|
poslist =
|
||||||
|
|
Loading…
Reference in a new issue