From fbf9968935317d4b92ec4650355f7bb1c379f7e1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 22 May 2017 11:12:36 +0800 Subject: [PATCH] refactored --- src/polysections.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/polysections.scad b/src/polysections.scad index 232a4cf4..3f9c9b5d 100644 --- a/src/polysections.scad +++ b/src/polysections.scad @@ -52,7 +52,7 @@ module polysections(sections, triangles = "SOLID") { i < leng_pts_sect ? (p == first_sect[i] ? i : search_at_first_sect(p, i + 1)) : -1; - function the_same_as_first_sect() = + function the_same_after_twisting() = let( found_at_i = search_at_first_sect(last_sect[0]) ) @@ -68,7 +68,7 @@ module polysections(sections, triangles = "SOLID") { pt ]; - if(first_sect == last_sect || the_same_as_first_sect()) { + if(first_sect == last_sect || the_same_after_twisting()) { polyhedron( v_pts, side_indexes(sects)