From 1855d7fa0c25d624751b3245bc0934602f39c19b Mon Sep 17 00:00:00 2001 From: Alex Matulich Date: Tue, 18 Mar 2025 19:13:58 -0700 Subject: [PATCH] fix for #1596 --- isosurface.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isosurface.scad b/isosurface.scad index e3467010..35d28aa8 100644 --- a/isosurface.scad +++ b/isosurface.scad @@ -1163,7 +1163,7 @@ function mb_disk(h, r, cutoff=INF, influence=1, negative=false, hide_debug=false dum1 = assert(is_finite(h) && h>0, "\ncylinder height must be a positive number."), h2 = h/2, or = get_radius(r=r,d=d), - dum2 = assert(is_finite(r) && or>0, "\ninvalid radius or diameter."), + dum2 = assert(is_finite(or) && or>0, "\ninvalid radius or diameter."), r = or - h2, dum3 = assert(r>0, "\nDiameter must be greater than height."), neg = negative ? -1 : 1,