mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 20:10:36 +02:00
depends on $children
This commit is contained in:
@@ -3,21 +3,21 @@ module polyline_hull(points) {
|
|||||||
|
|
||||||
module hull_line(index) {
|
module hull_line(index) {
|
||||||
hull() {
|
hull() {
|
||||||
translate(points[index - 1])
|
|
||||||
children();
|
|
||||||
translate(points[index])
|
translate(points[index])
|
||||||
children();
|
children();
|
||||||
|
translate(points[index + 1])
|
||||||
|
children();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($children == 1) {
|
if($children == 1) {
|
||||||
for(i = [1:leng - 1]) {
|
for(i = [0:leng - 2]) {
|
||||||
hull_line(i)
|
hull_line(i)
|
||||||
children();
|
children();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(i = [1:leng - 1]) {
|
for(i = [0:min(leng, $children) - 2]) {
|
||||||
hull_line(i)
|
hull_line(i)
|
||||||
children(i);
|
children(i);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user