Fix FlexEdge to use separate path for the flex cut

to allow continous outlines for parts.

Resolves: #242
This commit is contained in:
Florian Festi 2020-09-15 17:42:38 +02:00
parent 3513cf88a8
commit e35447e536
1 changed files with 2 additions and 0 deletions

View File

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