From 9f513fd3a3c3a2f32a203189f930e3d5232a9683 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 15 Feb 2011 14:12:03 +0000 Subject: [PATCH] Modify GetCriterion() to take into account the case when tolerance is passed via UnaryOp parameter --- src/SMESH_SWIG/smeshDC.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.39.2