]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Modify GetCriterion() to take into account the case when tolerance is passed via...
authorvsr <vsr@opencascade.com>
Tue, 15 Feb 2011 14:12:03 +0000 (14:12 +0000)
committervsr <vsr@opencascade.com>
Tue, 15 Feb 2011 14:12:03 +0000 (14:12 +0000)
src/SMESH_SWIG/smeshDC.py

index 1a9fdbe48ec336f8863a3ef8e4871f16fd41d732..6419fed8b5744081588315852589f19dcdf0540c 100644 (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):