Use polyline() for FingerJointEdge

This commit is contained in:
Florian Festi 2016-11-23 21:26:31 +01:00
parent aa5fa73c8a
commit 6f0a4cae86
1 changed files with 3 additions and 7 deletions

View File

@ -570,6 +570,8 @@ class FingerJointEdge(BaseEdge, FingerJointBase):
self.edge(leftover / 2.0)
h = self.settings.height
for i in range(fingers):
if i != 0:
if not positive and bedBolts and bedBolts.drawBolt(i):
@ -581,13 +583,7 @@ class FingerJointEdge(BaseEdge, FingerJointBase):
else:
self.edge(s)
self.corner(-90 * p)
self.edge(self.settings.height)
self.corner(90 * p)
self.edge(f)
self.corner(90 * p)
self.edge(self.settings.height)
self.corner(-90 * p)
self.polyline(0, -90 * p, h, 90 * p, f, 90 * p, h, -90 * p)
self.edge(leftover / 2.0)