Fix FingerJoints with angles != 90 degrees
Fix margins Fix amount of recess for spaces
This commit is contained in:
parent
6298c80527
commit
b2b0ccd6f1
|
@ -551,8 +551,8 @@ class FingerJointBase:
|
||||||
|
|
||||||
a = 90 - (180-angle) / 2.0
|
a = 90 - (180-angle) / 2.0
|
||||||
fingerlength = self.thickness * math.tan(math.radians(a))
|
fingerlength = self.thickness * math.tan(math.radians(a))
|
||||||
b = 2*a
|
b = 90-2*a
|
||||||
spacerecess = -math.sin(math.degrees(b)) * fingerlength
|
spacerecess = -math.sin(math.radians(b)) * fingerlength
|
||||||
return fingerlength, spacerecess
|
return fingerlength, spacerecess
|
||||||
|
|
||||||
class FingerJointEdge(BaseEdge, FingerJointBase):
|
class FingerJointEdge(BaseEdge, FingerJointBase):
|
||||||
|
@ -601,7 +601,7 @@ class FingerJointEdge(BaseEdge, FingerJointBase):
|
||||||
""" """
|
""" """
|
||||||
widths = self.fingerLength(self.settings.angle)
|
widths = self.fingerLength(self.settings.angle)
|
||||||
if self.positive:
|
if self.positive:
|
||||||
return widths[0]
|
return widths[0] - widths[1]
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue