mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +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:
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user