Modify GetCriterion() to take into account the case when tolerance is passed via UnaryOp parameter

This commit is contained in:
vsr 2011-02-15 14:12:03 +00:00
parent 696c252ac8
commit 9f513fd3a3

View File

@ -787,6 +787,10 @@ class smeshDC(SMESH._objref_SMESH_Gen):
else:
print "Error: The treshold should be a shape."
return None
if isinstance(UnaryOp,float):
aCriterion.Tolerance = UnaryOp
UnaryOp = FT_Undefined
pass
elif CritType == FT_RangeOfIds:
# Checks the treshold
if isinstance(aTreshold, str):