1
0
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:
Justin Lin
2019-06-12 20:28:18 +08:00
parent 700f46bfef
commit f433a79c31

View File

@@ -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)]
];