mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +05:00
PAL13460 (PAL EDF 301 force the mesh to go through a point)
+ def AddHypothesis(self, hyp, geom=0 ): - def MeshToPassTroughAPoint(self, x, y, z): + def MeshToPassThroughAPoint(self, x, y, z):
This commit is contained in:
parent
4ce5a89eed
commit
6b6445986f
@ -350,7 +350,7 @@ def GetFunctor(theCriterion):
|
|||||||
print "Error: given parameter is not numerucal functor type."
|
print "Error: given parameter is not numerucal functor type."
|
||||||
|
|
||||||
|
|
||||||
## Private method. Print error message if a hypothesis was not assigned.
|
## Print error message if a hypothesis was not assigned.
|
||||||
def TreatHypoStatus(status, hypName, geomName, isAlgo):
|
def TreatHypoStatus(status, hypName, geomName, isAlgo):
|
||||||
if isAlgo:
|
if isAlgo:
|
||||||
hypType = "algorithm"
|
hypType = "algorithm"
|
||||||
@ -1340,6 +1340,21 @@ class Mesh:
|
|||||||
pass
|
pass
|
||||||
return self.Compute()
|
return self.Compute()
|
||||||
|
|
||||||
|
## Assign hypothesis
|
||||||
|
# @param hyp is a hypothesis to assign
|
||||||
|
# @param geom is subhape of mesh geometry
|
||||||
|
def AddHypothesis(self, hyp, geom=0 ):
|
||||||
|
if isinstance( hyp, Mesh_Algorithm ):
|
||||||
|
hyp = hyp.GetAlgorithm()
|
||||||
|
pass
|
||||||
|
if not geom:
|
||||||
|
geom = self.geom
|
||||||
|
pass
|
||||||
|
status = self.mesh.AddHypothesis(geom, hyp)
|
||||||
|
isAlgo = ( hyp._narrow( SMESH.SMESH_Algo ) is not None )
|
||||||
|
TreatHypoStatus( status, GetName( hyp ), GetName( geom ), isAlgo )
|
||||||
|
return status
|
||||||
|
|
||||||
## Get the list of hypothesis added on a geom
|
## Get the list of hypothesis added on a geom
|
||||||
# @param geom is subhape of mesh geometry
|
# @param geom is subhape of mesh geometry
|
||||||
def GetHypothesisList(self, geom):
|
def GetHypothesisList(self, geom):
|
||||||
@ -1914,7 +1929,7 @@ class Mesh:
|
|||||||
# @param y Y coordinate of a point
|
# @param y Y coordinate of a point
|
||||||
# @param z Z coordinate of a point
|
# @param z Z coordinate of a point
|
||||||
# @return id of a moved node
|
# @return id of a moved node
|
||||||
def MeshToPassTroughAPoint(self, x, y, z):
|
def MeshToPassThroughAPoint(self, x, y, z):
|
||||||
return self.editor.MoveClosestNodeToPoint(x, y, z, -1)
|
return self.editor.MoveClosestNodeToPoint(x, y, z, -1)
|
||||||
|
|
||||||
## Replace two neighbour triangles sharing Node1-Node2 link
|
## Replace two neighbour triangles sharing Node1-Node2 link
|
||||||
|
Loading…
Reference in New Issue
Block a user