mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 20:11:50 +02:00
fix join index
This commit is contained in:
@@ -10,6 +10,15 @@ module polyline_join(points) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module hull_line2(index) {
|
||||||
|
hull() {
|
||||||
|
translate(points[index])
|
||||||
|
children(0);
|
||||||
|
translate(points[index + 1])
|
||||||
|
children(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($children == 1) {
|
if($children == 1) {
|
||||||
for(i = [0:leng - 2]) {
|
for(i = [0:leng - 2]) {
|
||||||
hull_line(i)
|
hull_line(i)
|
||||||
@@ -18,8 +27,10 @@ module polyline_join(points) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(i = [0:min(leng, $children) - 2]) {
|
for(i = [0:min(leng, $children) - 2]) {
|
||||||
hull_line(i)
|
hull_line2(i) {
|
||||||
children(i);
|
children(i);
|
||||||
|
children(i + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user