1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00

c-style for loop

This commit is contained in:
Justin Lin
2019-06-12 08:42:10 +08:00
parent 88b0868358
commit 8c4d2b5333

View File

@@ -3,7 +3,7 @@ function __trapezium(length, h, round_r) =
r_half_trapezium = __half_trapezium(length / 2, h, round_r),
to = len(r_half_trapezium) - 1,
l_half_trapezium = [
for(i = [0:to])
for(i = 0; i <= to; i = i + 1)
let(pt = r_half_trapezium[to - i])
[-pt[0], pt[1]]
]