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

use line2d when two points

This commit is contained in:
Justin Lin
2020-12-23 07:50:39 +08:00
parent e8d7b1b416
commit 3effea8c47

View File

@@ -86,8 +86,13 @@ module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CA
}
}
if(leng_pts == 2) {
line2d(points[0], points[1], width, startingStyle, endingStyle);
}
else {
lines(1);
joins(points, width / 2, leng_pts - 2, 0);
}
}
// override it to test