mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 10:30:33 +05:00
NPAL17873. Update smesh.py: add precision parameter to LocalLength method.
This commit is contained in:
parent
553205962e
commit
434772a02f
@ -1461,9 +1461,11 @@ class Mesh_RadialPrism3D(Mesh_Algorithm):
|
|||||||
## Define "LocalLength" hypothesis, specifying segment length
|
## Define "LocalLength" hypothesis, specifying segment length
|
||||||
# to build between the inner and outer shells
|
# to build between the inner and outer shells
|
||||||
# @param l for the length of segments
|
# @param l for the length of segments
|
||||||
def LocalLength(self, l):
|
# @param p for the precision of rounding
|
||||||
hyp = self.OwnHypothesis("LocalLength", [l])
|
def LocalLength(self, l, p=1e-07):
|
||||||
|
hyp = self.OwnHypothesis("LocalLength", [l,p])
|
||||||
hyp.SetLength(l)
|
hyp.SetLength(l)
|
||||||
|
hyp.SetPrecision(p)
|
||||||
return hyp
|
return hyp
|
||||||
|
|
||||||
## Define "NumberOfSegments" hypothesis, specifying a number of layers of
|
## Define "NumberOfSegments" hypothesis, specifying a number of layers of
|
||||||
|
Loading…
Reference in New Issue
Block a user