From e35447e5369b526304889b7ab0fd0830aac10a5a Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 15 Sep 2020 17:42:38 +0200 Subject: [PATCH] Fix FlexEdge to use separate path for the flex cut to allow continous outlines for parts. Resolves: #242 --- boxes/edges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boxes/edges.py b/boxes/edges.py index 82f3209..b17afd7 100644 --- a/boxes/edges.py +++ b/boxes/edges.py @@ -1880,6 +1880,7 @@ class FlexEdge(BaseEdge): sections = max(int((h - connection) // width), 1) sheight = ((h - connection) / sections) - connection + self.ctx.stroke() for i in range(1, lines): pos = i * dist + leftover / 2 @@ -1911,6 +1912,7 @@ class FlexEdge(BaseEdge): h - connection - 2 * j * (sheight + connection)) self.ctx.line_to(pos, h - 2 * (j + 1) * (sheight + connection)) + self.ctx.stroke() self.ctx.move_to(0, 0) self.ctx.line_to(x, 0) self.ctx.translate(*self.ctx.get_current_point())