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

c-style for loop

This commit is contained in:
Justin Lin
2019-06-12 09:06:36 +08:00
parent 283b091c7c
commit 423fc36f1c

View File

@@ -21,7 +21,7 @@ function arc_path(radius, angle) =
n = floor(angles[1] / a_step),
points = concat([__ra_to_xy(__edge_r_begin(radius, angles[0], a_step, m), angles[0])],
m > n ? [] : [
for(i = [m:n])
for(i = m; i <= n; i = i + 1)
__ra_to_xy(radius, a_step * i)
],
angles[1] == a_step * n ? [] : [__ra_to_xy(__edge_r_end(radius, angles[1], a_step, n), angles[1])])