mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 01:58:35 +05:00
Modify GetCriterion() to take into account the case when tolerance is passed via UnaryOp parameter
This commit is contained in:
parent
696c252ac8
commit
9f513fd3a3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user