ChestHingeSettings: check pin_height for minimal size

This commit is contained in:
Florian Festi 2020-02-01 14:27:17 +01:00
parent 0f3eb5b21a
commit dd0f2d748c
1 changed files with 4 additions and 0 deletions

View File

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