From 0d6d5140bf1d93e3210e79f0acdfbbd4e8525cd0 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Tue, 10 Oct 2023 15:16:50 -0700 Subject: [PATCH] Allow zero-size rect() to allow prismoid() pyramids. --- shapes2d.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes2d.scad b/shapes2d.scad index d2070c7..bbcda77 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -167,7 +167,7 @@ function rect(size=1, rounding=0, chamfer=0, atype="box", anchor=CENTER, spin=0, chamfer = force_list(chamfer,4), rounding = force_list(rounding,4) ) - assert(all_positive(size), "All components of size must be positive") + assert(all_nonnegative(size), "All components of size must be >=0") all_zero(concat(chamfer,rounding),0) ? let( path = [