From 420738c25b2e103e563ef941b370c16d10bb9dda Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 5 May 2022 13:14:27 +0800 Subject: [PATCH] refactor --- src/shape_arc.scad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shape_arc.scad b/src/shape_arc.scad index 33e99122..73b659f6 100644 --- a/src/shape_arc.scad +++ b/src/shape_arc.scad @@ -37,8 +37,7 @@ function shape_arc(radius, angle, width, width_mode = "LINE_CROSS") = // inner arc path if(m <= n) each [ for(i = m; i <= n; i = i + 1) - let(idx = n + m - i) - __ra_to_xy(r_inner, a_step * idx) + __ra_to_xy(r_inner, a_step * (n + m - i)) ], __ra_to_xy(__edge_r_begin(r_inner, a0, a_step, m), a0)