1
0
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:
Justin Lin
2020-05-21 13:52:49 +08:00
parent 14acb3359c
commit 1fc3cd6c7e

View File

@@ -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)