From c16b554350fbfdf58886d58c67a90ba9b8bcdaab Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 24 May 2017 18:46:46 +0800 Subject: [PATCH] fixed end angle problem --- src/shape_arc.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shape_arc.scad b/src/shape_arc.scad index 8d7c725f..5aa4a46e 100644 --- a/src/shape_arc.scad +++ b/src/shape_arc.scad @@ -44,9 +44,9 @@ function shape_arc(radius, angle, width, width_mode = "LINE_CROSS") = for(i = [m:n]) __ra_to_xy(r_outer, a_step * i) ], - [__ra_to_xy(_edge_r_end(r_outer, angles[1], a_step, n), angles[1])], + angles[1] == a_step * n ? [] : [__ra_to_xy(_edge_r_end(r_outer, angles[1], a_step, n), angles[1])], // inner arc path - [__ra_to_xy(_edge_r_end(r_inner, angles[1], a_step, n), angles[1])], + angles[1] == a_step * n ? [] : [__ra_to_xy(_edge_r_end(r_inner, angles[1], a_step, n), angles[1])], m >= n ? [] : [ for(i = [m:n]) let(idx = (n + (m - i)))