From 6338019c29ff175fed02bb6a4c9cb5e8409398ca Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 16 May 2022 09:00:57 +0800 Subject: [PATCH] < leng is not necessary --- src/sweep.scad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sweep.scad b/src/sweep.scad index e54528cb..48157f79 100644 --- a/src/sweep.scad +++ b/src/sweep.scad @@ -44,8 +44,7 @@ module sweep(sections, triangles = "SOLID") { function the_same_after_twisting(f_sect, l_sect) = let(found = search([l_sect[0]], f_sect)[0], leng = len(l_sect)) found != [] && - // l_sect == concat(slice(f_sect, found), slice(f_sect, 0, found)) - len([for(i = 0; i < leng && l_sect[i] == f_sect[(found + i) % leng]; i = i + 1) undef]) == leng; + len([for(i = 0; l_sect[i] == f_sect[(found + i) % leng]; i = i + 1) undef]) == leng; function to_v_pts(sects) = [for(sect = sects) each sect];