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:
@@ -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])])
|
||||
|
Reference in New Issue
Block a user