From: vsr Date: Tue, 15 Feb 2011 14:12:03 +0000 (+0000) Subject: Modify GetCriterion() to take into account the case when tolerance is passed via... X-Git-Tag: StartingPortingMED3~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f513fd3a3c3a2f32a203189f930e3d5232a9683;p=modules%2Fsmesh.git Modify GetCriterion() to take into account the case when tolerance is passed via UnaryOp parameter --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 1a9fdbe48..6419fed8b 100644 --- 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):