Check values of flex settings

This commit is contained in:
Florian Festi 2019-12-14 12:33:09 +01:00
parent 4a711b1cb4
commit 8cb5a8e042
1 changed files with 5 additions and 0 deletions

View File

@ -1848,6 +1848,11 @@ Values:
"stretch": 1.05,
}
def checkValues(self):
if self.distance < 0.01:
raise ValueError("Flex Settings: distance parameter must be > 0.01mm")
if self.width < 0.1:
raise ValueError("Flex Settings: width parameter must be > 0.1mm")
class FlexEdge(BaseEdge):
"""Edge with flex cuts - use straight edge for the opposing side"""