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: else:
print "Error: The treshold should be a shape." print "Error: The treshold should be a shape."
return None return None
if isinstance(UnaryOp,float):
aCriterion.Tolerance = UnaryOp
UnaryOp = FT_Undefined
pass
elif CritType == FT_RangeOfIds: elif CritType == FT_RangeOfIds:
# Checks the treshold # Checks the treshold
if isinstance(aTreshold, str): if isinstance(aTreshold, str):