From e34bc73def36b1dd5ae70af9645297a338d3c73c Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 12 Jun 2019 13:35:21 +0800 Subject: [PATCH] c-style for loop --- src/bezier_surface.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bezier_surface.scad b/src/bezier_surface.scad index ccc36177..e1889149 100644 --- a/src/bezier_surface.scad +++ b/src/bezier_surface.scad @@ -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]] )