]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
NPAL17873. Update smesh.py: add precision parameter to LocalLength method.
authorjfa <jfa@opencascade.com>
Wed, 6 Feb 2008 09:41:21 +0000 (09:41 +0000)
committerjfa <jfa@opencascade.com>
Wed, 6 Feb 2008 09:41:21 +0000 (09:41 +0000)
src/SMESH_SWIG/smeshDC.py

index 7b16d0d77a279451833bf62d0afedff1c8d2a102..3715504373b269f91e5ada777e9ac91a8e0fc33c 100644 (file)
@@ -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