From: jfa Date: Wed, 6 Feb 2008 09:41:21 +0000 (+0000) Subject: NPAL17873. Update smesh.py: add precision parameter to LocalLength method. X-Git-Tag: for_M2008_07022008~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=434772a02fa8edc2a744ec99111dbb4a73ad257e;p=modules%2Fsmesh.git NPAL17873. Update smesh.py: add precision parameter to LocalLength method. --- 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