1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 08:16:50 +02:00

fixed end angle problem

This commit is contained in:
Justin Lin
2017-05-24 18:46:46 +08:00
parent 072032227e
commit c16b554350

View File

@@ -44,9 +44,9 @@ function shape_arc(radius, angle, width, width_mode = "LINE_CROSS") =
for(i = [m:n]) for(i = [m:n])
__ra_to_xy(r_outer, a_step * i) __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 // 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 ? [] : [ m >= n ? [] : [
for(i = [m:n]) for(i = [m:n])
let(idx = (n + (m - i))) let(idx = (n + (m - i)))