Fix FlexEdge to use separate path for the flex cut
to allow continous outlines for parts. Resolves: #242
This commit is contained in:
parent
3513cf88a8
commit
e35447e536
|
@ -1880,6 +1880,7 @@ class FlexEdge(BaseEdge):
|
||||||
sections = max(int((h - connection) // width), 1)
|
sections = max(int((h - connection) // width), 1)
|
||||||
sheight = ((h - connection) / sections) - connection
|
sheight = ((h - connection) / sections) - connection
|
||||||
|
|
||||||
|
self.ctx.stroke()
|
||||||
for i in range(1, lines):
|
for i in range(1, lines):
|
||||||
pos = i * dist + leftover / 2
|
pos = i * dist + leftover / 2
|
||||||
|
|
||||||
|
@ -1911,6 +1912,7 @@ class FlexEdge(BaseEdge):
|
||||||
h - connection - 2 * j * (sheight + connection))
|
h - connection - 2 * j * (sheight + connection))
|
||||||
self.ctx.line_to(pos, h - 2 * (j + 1) * (sheight + connection))
|
self.ctx.line_to(pos, h - 2 * (j + 1) * (sheight + connection))
|
||||||
|
|
||||||
|
self.ctx.stroke()
|
||||||
self.ctx.move_to(0, 0)
|
self.ctx.move_to(0, 0)
|
||||||
self.ctx.line_to(x, 0)
|
self.ctx.line_to(x, 0)
|
||||||
self.ctx.translate(*self.ctx.get_current_point())
|
self.ctx.translate(*self.ctx.get_current_point())
|
||||||
|
|
Loading…
Reference in New Issue