From 7059caa6cc9bfe40c4201ee5dc74cf27d8603bf6 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Mon, 6 Dec 2021 23:05:45 -0500 Subject: [PATCH] Remove nonzero parm from point_in_region in grid2d() --- distributors.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distributors.scad b/distributors.scad index e8fa63e..70f5ffc 100644 --- a/distributors.scad +++ b/distributors.scad @@ -359,7 +359,7 @@ module grid2d(spacing, n, size, stagger=false, inside=undef, nonzero=false) if ( is_undef(inside) || (is_path(inside) && point_in_polygon(pos, inside, nonzero=nonzero)>=0) || - (is_region(inside) && point_in_region(pos, inside, nonzero=nonzero)>=0) + (is_region(inside) && point_in_region(pos, inside)>=0) ) { $col = col; $row = row; @@ -381,7 +381,7 @@ module grid2d(spacing, n, size, stagger=false, inside=undef, nonzero=false) pos = v_mul([2*col,row],spacing) + [rowdx,0] - offset; if ( is_undef(inside) || - (is_path(inside) && point_in_polygon(pos, inside)>=0) || + (is_path(inside) && point_in_polygon(pos, inside, nonzero=nonzero)>=0) || (is_region(inside) && point_in_region(pos, inside)>=0) ) { $col = col * 2 + ((row%2!=staggermod)? 1 : 0);