1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00

removed duplicated circles

This commit is contained in:
Justin Lin
2017-04-24 17:18:48 +08:00
parent cac51e8168
commit 4eb53f6493

View File

@@ -15,8 +15,8 @@
module polyline2d(points, width, startingStyle = "CAP_SQUARE", endingStyle = "CAP_SQUARE") {
module line_segment(index) {
styles = index == 1 ? [startingStyle, "CAP_ROUND"] : (
index == len(points) - 1 ? ["CAP_ROUND", endingStyle] : [
"CAP_ROUND", "CAP_ROUND"
index == len(points) - 1 ? ["CAP_BUTT", endingStyle] : [
"CAP_BUTT", "CAP_ROUND"
]
);