From 90c6db16d57ee09ed193a1443f042dac7040b656 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 22 Nov 2021 18:02:10 +0800 Subject: [PATCH] union all --- src/polyline2d.scad | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/polyline2d.scad b/src/polyline2d.scad index e48e7ad3..fee1b42d 100644 --- a/src/polyline2d.scad +++ b/src/polyline2d.scad @@ -80,9 +80,11 @@ module polyline2d(points, width = 1, startingStyle = "CAP_SQUARE", endingStyle = line2d(points[0], points[1], width, startingStyle, endingStyle); } else { - for(i = [1:leng_pts - 1]) { - line_segment(i); + union() { + for(i = [1:leng_pts - 1]) { + line_segment(i); + } + joins(points, width / 2, leng_pts - 2, 0); } - joins(points, width / 2, leng_pts - 2, 0); } } \ No newline at end of file