From 726b8fdfa19eb75c78076969e94291bd44b24d96 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Tue, 29 Nov 2022 22:23:59 -0500 Subject: [PATCH] Negative chamfers not allowed in mask --- masks3d.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/masks3d.scad b/masks3d.scad index 4d44a59..6215944 100644 --- a/masks3d.scad +++ b/masks3d.scad @@ -132,6 +132,7 @@ function chamfer_cylinder_mask(r, chamfer, d, ang=45, from_end=false, anchor=CEN module chamfer_cylinder_mask(r, chamfer, d, ang=45, from_end=false, anchor=CENTER, spin=0, orient=UP) { r = get_radius(r=r, d=d, dflt=1); + dummy = assert(all_nonnegative([chamfer]), "Chamfer must be a nonnegative number"); ch = from_end? chamfer : opp_ang_to_adj(chamfer,90-ang); attachable(anchor,spin,orient, r=r, l=ch*2) { difference() {