1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +02:00

fix join index

This commit is contained in:
Justin Lin
2021-10-13 16:06:22 +08:00
parent 57d46eda8d
commit 5a44454547

View File

@@ -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) {
for(i = [0:leng - 2]) {
hull_line(i)
@@ -18,8 +27,10 @@ module polyline_join(points) {
}
else {
for(i = [0:min(leng, $children) - 2]) {
hull_line(i)
hull_line2(i) {
children(i);
children(i + 1);
}
}
}
}