From 0f8378091dd5370a491440a46c4d5c9cf62f68eb Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Mon, 25 Dec 2023 17:20:21 -0500 Subject: [PATCH] fix half_of() bug with regions --- partitions.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partitions.scad b/partitions.scad index 144c768..77b467e 100644 --- a/partitions.scad +++ b/partitions.scad @@ -95,7 +95,7 @@ function half_of(p, v=UP, cp) = assert(is_vector(v,2) || (is_vector(v,3) && v.z==0),"Must give 2-vector") assert(!all_zero(v), "Vector v must be nonzero") let( - bounds = pointlist_bounds(move(-cp,p)), + bounds = pointlist_bounds(move(-cp,flatten(force_region(p)))), L = 2*max(flatten(bounds)), n = unit(v), u = [-n.y,n.x],