From 6299da9d23d5d8a02c8537ecb1786996ca26764a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 13 Jun 2019 20:37:16 +0800 Subject: [PATCH] c-style for loop --- src/paths2sections.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paths2sections.scad b/src/paths2sections.scad index c7eb55b2..56b3b562 100644 --- a/src/paths2sections.scad +++ b/src/paths2sections.scad @@ -14,9 +14,9 @@ function paths2sections(paths) = leng_paths = len(paths) ) [ - for(i = [0:leng_path - 1]) + for(i = 0; i < leng_path; i = i + 1) [ - for(j = [0:leng_paths - 1]) + for(j = 0; j < leng_paths; j = j + 1) paths[j][i] ] ]; \ No newline at end of file