From 9f8e9b8ba2d6533fd873fecd7a77ad87c0b6a434 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Tue, 5 Jan 2021 23:48:19 -0500 Subject: [PATCH] handle $fn case for arc --- shapes2d.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes2d.scad b/shapes2d.scad index e3cfb3a8..91e1ab23 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -381,7 +381,7 @@ function arc(N, r, angle, d, cp, points, width, thickness, start, wedge=false, l assert(is_bool(endpoint)) !endpoint ? assert(!wedge, "endpoint cannot be false if wedge is true") slice(arc(N,r,angle,d,cp,points,width,thickness,start,wedge,long,cw,ccw,true),0,-2) : - assert(is_integer(N), "Number of points must be an integer") + assert(is_undef(N) || is_integer(N), "Number of points must be an integer") // First try for 2D arc specified by width and thickness is_def(width) && is_def(thickness)? ( assert(!any_defined([r,cp,points]) && !any([cw,ccw,long]),"Conflicting or invalid parameters to arc")