ChestHingeSettings: check pin_height for minimal size
This commit is contained in:
parent
0f3eb5b21a
commit
dd0f2d748c
|
@ -1133,6 +1133,10 @@ Values:
|
|||
"play" : 0.1,
|
||||
}
|
||||
|
||||
def checkValues(self):
|
||||
if self.pin_height / self.thickness < 1.2:
|
||||
raise ValueError("ChestHingeSettings: 'pin_height' must be >= 1.2")
|
||||
|
||||
def pinheight(self):
|
||||
return ((0.9*self.pin_height)**2-self.thickness**2)**0.5
|
||||
|
||||
|
|
Loading…
Reference in New Issue