From f982b96d12a3bc37e36ab91ac69cc57678bd96c7 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Wed, 27 Nov 2024 20:19:48 -0500 Subject: [PATCH] check that rows is an integer for grid2d --- distributors.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/distributors.scad b/distributors.scad index 915e445..e706adc 100644 --- a/distributors.scad +++ b/distributors.scad @@ -654,6 +654,7 @@ module grid_copies(spacing, n, size, stagger=false, inside=undef, nonzero) is_vector(n)? assert(len(n)==2) n : size!=undef && spacing!=undef? v_floor(v_div(size,spacing))+[1,1] : [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; poslist =