mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 23:37:13 +02:00
support JOIN_MITER
This commit is contained in:
@@ -70,6 +70,10 @@ module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CA
|
||||
angle = [0, a],
|
||||
$fn = $fn * 360 / a
|
||||
);
|
||||
} else if(joinStyle == "JOIN_MITER") {
|
||||
translate(p2)
|
||||
rotate(ra)
|
||||
polygon([[0, 0], [radius, 0], [radius, radius * tan(a / 2)], [radius * cos(a), radius * sin(a)]]);
|
||||
} else { // "JOIN_BEVEL"
|
||||
translate(p2)
|
||||
rotate(ra)
|
||||
|
Reference in New Issue
Block a user