1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 00:36:40 +02:00

remove children support

This commit is contained in:
Justin Lin
2021-10-01 08:26:06 +08:00
parent 4683ff5a46
commit d701b537f0
2 changed files with 6 additions and 34 deletions

View File

@@ -27,24 +27,10 @@ module hull_polyline2d(points, width = 1) {
test_hull_polyline2d_line_segment(index, point1, point2, half_width); test_hull_polyline2d_line_segment(index, point1, point2, half_width);
} }
if($children == 0) {
for(i = [1:leng - 1]) { for(i = [1:leng - 1]) {
hull_line2d(i) hull_line2d(i)
circle(half_width); 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);
}
}
} }
// override it to test // override it to test

View File

@@ -27,24 +27,10 @@ module hull_polyline3d(points, diameter = 1) {
test_hull_polyline3d_line_segment(index, point1, point2, radius); test_hull_polyline3d_line_segment(index, point1, point2, radius);
} }
if($children == 0) {
for(i = [1:leng - 1]) { for(i = [1:leng - 1]) {
hull_line3d(i) hull_line3d(i)
sphere(radius); 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);
}
}
} }
// override it to test // override it to test