Allow zero-size rect() to allow prismoid() pyramids.

This commit is contained in:
Revar Desmera 2023-10-10 15:16:50 -07:00
parent a6e60b5993
commit 0d6d5140bf

View file

@ -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 = [