From 6d83e02312f7e8806642d8b970f9069b963bdf96 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 16 May 2022 09:05:31 +0800 Subject: [PATCH] remove if(m <= n) --- src/shape_pie.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape_pie.scad b/src/shape_pie.scad index 2b07dab1..dba62bc7 100644 --- a/src/shape_pie.scad +++ b/src/shape_pie.scad @@ -25,7 +25,7 @@ function shape_pie(radius, angle) = shape_pts = [ [0, 0], __ra_to_xy(edge_r_begin, a0), - if(m <= n) each [ + each [ for(i = m; i <= n; i = i + 1) __ra_to_xy(radius, a_step * i) ],