mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
c-style for loop
This commit is contained in:
@@ -17,6 +17,6 @@ function circle_path(radius, n) =
|
||||
end_a = 360 - step_a * ((is_undef(n) || n > _frags) ? 1 : _frags - n + 1)
|
||||
)
|
||||
[
|
||||
for(a = [0 : step_a : end_a])
|
||||
for(a = 0; a <= end_a; a = a + step_a)
|
||||
[radius * cos(a), radius * sin(a)]
|
||||
];
|
||||
|
Reference in New Issue
Block a user