mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 04:21:16 +02:00
use line2d when two points
This commit is contained in:
@@ -86,9 +86,14 @@ 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
|
||||
module test_polyline2d_line_segment(index, point1, point2, width, p1Style, p2Style) {
|
||||
|
Reference in New Issue
Block a user