From 434772a02fa8edc2a744ec99111dbb4a73ad257e Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 6 Feb 2008 09:41:21 +0000 Subject: [PATCH] NPAL17873. Update smesh.py: add precision parameter to LocalLength method. --- src/SMESH_SWIG/smeshDC.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 7b16d0d77..371550437 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1461,9 +1461,11 @@ class Mesh_RadialPrism3D(Mesh_Algorithm): ## Define "LocalLength" hypothesis, specifying segment length # to build between the inner and outer shells # @param l for the length of segments - def LocalLength(self, l): - hyp = self.OwnHypothesis("LocalLength", [l]) + # @param p for the precision of rounding + def LocalLength(self, l, p=1e-07): + hyp = self.OwnHypothesis("LocalLength", [l,p]) hyp.SetLength(l) + hyp.SetPrecision(p) return hyp ## Define "NumberOfSegments" hypothesis, specifying a number of layers of -- 2.39.2