From d701b537f0b34aea67a479aae58332767c727996 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 1 Oct 2021 08:26:06 +0800 Subject: [PATCH] remove children support --- src/hull_polyline2d.scad | 20 +++----------------- src/hull_polyline3d.scad | 20 +++----------------- 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/src/hull_polyline2d.scad b/src/hull_polyline2d.scad index 7bf420de..e3e6dfb0 100644 --- a/src/hull_polyline2d.scad +++ b/src/hull_polyline2d.scad @@ -27,23 +27,9 @@ module hull_polyline2d(points, width = 1) { test_hull_polyline2d_line_segment(index, point1, point2, half_width); } - if($children == 0) { - for(i = [1:leng - 1]) { - hull_line2d(i) - circle(half_width); - } - } - else if($children == 1) { - for(i = [1:leng - 1]) { - hull_line2d(i) - children(); - } - } - else { - for(i = [1:leng - 1]) { - hull_line2d(i) - children(i); - } + for(i = [1:leng - 1]) { + hull_line2d(i) + circle(half_width); } } diff --git a/src/hull_polyline3d.scad b/src/hull_polyline3d.scad index 55421a1d..908cf4d7 100644 --- a/src/hull_polyline3d.scad +++ b/src/hull_polyline3d.scad @@ -27,23 +27,9 @@ module hull_polyline3d(points, diameter = 1) { test_hull_polyline3d_line_segment(index, point1, point2, radius); } - if($children == 0) { - for(i = [1:leng - 1]) { - hull_line3d(i) - sphere(radius); - } - } - else if($children == 1) { - for(i = [1:leng - 1]) { - hull_line3d(i) - children(); - } - } - else { - for(i = [1:leng - 1]) { - hull_line3d(i) - children(i); - } + for(i = [1:leng - 1]) { + hull_line3d(i) + sphere(radius); } }