mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 03:34:42 +02:00
c-style for loop
This commit is contained in:
@@ -10,10 +10,10 @@
|
|||||||
|
|
||||||
function bezier_surface(t_step, ctrl_pts) =
|
function bezier_surface(t_step, ctrl_pts) =
|
||||||
let(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])
|
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,
|
bezier_curve(t_step,
|
||||||
[for(y = [0:len(pts) - 1]) pts[y][x]]
|
[for(y = [0:len(pts) - 1]) pts[y][x]]
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user