mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 08:16:50 +02:00
c-style for loop
This commit is contained in:
@@ -21,7 +21,7 @@ function arc_path(radius, angle) =
|
|||||||
n = floor(angles[1] / a_step),
|
n = floor(angles[1] / a_step),
|
||||||
points = concat([__ra_to_xy(__edge_r_begin(radius, angles[0], a_step, m), angles[0])],
|
points = concat([__ra_to_xy(__edge_r_begin(radius, angles[0], a_step, m), angles[0])],
|
||||||
m > n ? [] : [
|
m > n ? [] : [
|
||||||
for(i = [m:n])
|
for(i = m; i <= n; i = i + 1)
|
||||||
__ra_to_xy(radius, a_step * i)
|
__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])])
|
angles[1] == a_step * n ? [] : [__ra_to_xy(__edge_r_end(radius, angles[1], a_step, n), angles[1])])
|
||||||
|
Reference in New Issue
Block a user