1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00

c-style for loop

This commit is contained in:
Justin Lin
2019-06-12 13:35:21 +08:00
parent cec42209f2
commit e34bc73def

View File

@@ -10,10 +10,10 @@
function bezier_surface(t_step, ctrl_pts) =
let(pts = [
for(i = [0:len(ctrl_pts) - 1])
for(i = 0; i < len(ctrl_pts); i = i + 1)
bezier_curve(t_step, ctrl_pts[i])
])
[for(x = [0:len(pts[0]) - 1])
[for(x = 0; x < len(pts[0]); x = x + 1)
bezier_curve(t_step,
[for(y = [0:len(pts) - 1]) pts[y][x]]
)