1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 08:44:20 +02:00

fixed begin > end of [begin:end] warning

This commit is contained in:
Justin Lin
2017-05-22 17:24:25 +08:00
parent f808ebc34f
commit 97cc26b4c7

View File

@@ -40,14 +40,14 @@ function shape_arc(radius, angle, width, width_mode = "LINE_CROSS") =
points = concat( points = concat(
// outer arc path // outer arc path
[__ra_to_xy(_edge_r_begin(r_outer, angles[0], a_step, m), angles[0])], [__ra_to_xy(_edge_r_begin(r_outer, angles[0], a_step, m), angles[0])],
[ m > n ? [] : [
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])], [__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])], [__ra_to_xy(_edge_r_end(r_inner, angles[1], a_step, n), angles[1])],
[ m > n ? [] : [
for(i = [m:n]) for(i = [m:n])
let(idx = (n + (m - i))) let(idx = (n + (m - i)))
__ra_to_xy(r_inner, a_step * idx) __ra_to_xy(r_inner, a_step * idx)