Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696c252
)
Modify GetCriterion() to take into account the case when tolerance is passed via...
author
vsr
<vsr@opencascade.com>
Tue, 15 Feb 2011 14:12:03 +0000
(14:12 +0000)
committer
vsr
<vsr@opencascade.com>
Tue, 15 Feb 2011 14:12:03 +0000
(14:12 +0000)
src/SMESH_SWIG/smeshDC.py
patch
|
blob
|
history
diff --git
a/src/SMESH_SWIG/smeshDC.py
b/src/SMESH_SWIG/smeshDC.py
index 1a9fdbe48ec336f8863a3ef8e4871f16fd41d732..6419fed8b5744081588315852589f19dcdf0540c 100644
(file)
--- a/
src/SMESH_SWIG/smeshDC.py
+++ b/
src/SMESH_SWIG/smeshDC.py
@@
-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):