mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 18:54:41 +02:00
c-style for loop
This commit is contained in:
@@ -15,14 +15,13 @@ function __shape_arc(radius, angle, width, width_mode = "LINE_CROSS") =
|
||||
// outer arc path
|
||||
[__ra_to_xy(__edge_r_begin(r_outer, angles[0], a_step, m), angles[0])],
|
||||
m > n ? [] : [
|
||||
for(i = [m:n])
|
||||
__ra_to_xy(r_outer, a_step * i)
|
||||
for(i = m; i <= n; i = i + 1) __ra_to_xy(r_outer, a_step * i)
|
||||
],
|
||||
angles[1] == a_step * n ? [] : [__ra_to_xy(__edge_r_end(r_outer, angles[1], a_step, n), angles[1])],
|
||||
// inner arc path
|
||||
angles[1] == a_step * n ? [] : [__ra_to_xy(__edge_r_end(r_inner, angles[1], a_step, n), angles[1])],
|
||||
m > n ? [] : [
|
||||
for(i = [m:n])
|
||||
for(i = m; i <= n; i = i + 1)
|
||||
let(idx = (n + (m - i)))
|
||||
__ra_to_xy(r_inner, a_step * idx)
|
||||
|
||||
|
Reference in New Issue
Block a user