Back to index

salome-smesh  6.5.0
Functions
Cutting quadrangles
Modifying meshes
Collaboration diagram for Cutting quadrangles:

Functions

def smeshDC.Mesh.QuadToTri
 Splits quadrangles into triangles.
def smeshDC.Mesh.QuadToTriObject
 Splits quadrangles into triangles.
def smeshDC.Mesh.SplitQuad
 Splits quadrangles into triangles.
def smeshDC.Mesh.SplitQuadObject
 Splits quadrangles into triangles.
def smeshDC.Mesh.BestSplit
 Finds a better splitting of the given quadrangle.
def smeshDC.Mesh.SplitVolumesIntoTetra
 Splits volumic elements into tetrahedrons.

Function Documentation

def smeshDC.Mesh.BestSplit (   self,
  IDOfQuad,
  theCriterion 
)

Finds a better splitting of the given quadrangle.

Parameters:
IDOfQuadthe ID of the quadrangle to be splitted.
theCriterionFT_...; a criterion to choose a diagonal for splitting.
Returns:
1 if 1-3 diagonal is better, 2 if 2-4 diagonal is better, 0 if error occurs.

Definition at line 2628 of file smeshDC.py.

02628 
02629     def BestSplit (self, IDOfQuad, theCriterion):
02630         return self.editor.BestSplit(IDOfQuad, self.smeshpyD.GetFunctor(theCriterion))

def smeshDC.Mesh.QuadToTri (   self,
  IDsOfElements,
  theCriterion 
)

Splits quadrangles into triangles.

Parameters:
IDsOfElementsthe faces to be splitted.
theCriterionFT_...; used to choose a diagonal for splitting.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2587 of file smeshDC.py.

02587 
02588     def QuadToTri (self, IDsOfElements, theCriterion):
02589         if IDsOfElements == []:
02590             IDsOfElements = self.GetElementsId()
02591         return self.editor.QuadToTri(IDsOfElements, self.smeshpyD.GetFunctor(theCriterion))

Here is the call graph for this function:

def smeshDC.Mesh.QuadToTriObject (   self,
  theObject,
  theCriterion 
)

Splits quadrangles into triangles.

Parameters:
theObjectthe object from which the list of elements is taken, this is mesh, submesh or group
theCriterionFT_...; used to choose a diagonal for splitting.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2597 of file smeshDC.py.

02597 
02598     def QuadToTriObject (self, theObject, theCriterion):
02599         if ( isinstance( theObject, Mesh )):
02600             theObject = theObject.GetMesh()
02601         return self.editor.QuadToTriObject(theObject, self.smeshpyD.GetFunctor(theCriterion))

def smeshDC.Mesh.SplitQuad (   self,
  IDsOfElements,
  Diag13 
)

Splits quadrangles into triangles.

Parameters:
IDsOfElementsthe faces to be splitted
Diag13is used to choose a diagonal for splitting.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2607 of file smeshDC.py.

02607 
02608     def SplitQuad (self, IDsOfElements, Diag13):
02609         if IDsOfElements == []:
02610             IDsOfElements = self.GetElementsId()
02611         return self.editor.SplitQuad(IDsOfElements, Diag13)

Here is the call graph for this function:

Here is the caller graph for this function:

def smeshDC.Mesh.SplitQuadObject (   self,
  theObject,
  Diag13 
)

Splits quadrangles into triangles.

Parameters:
theObjectthe object from which the list of elements is taken, this is mesh, submesh or group
Diag13is used to choose a diagonal for splitting.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2617 of file smeshDC.py.

02617 
02618     def SplitQuadObject (self, theObject, Diag13):
02619         if ( isinstance( theObject, Mesh )):
02620             theObject = theObject.GetMesh()
02621         return self.editor.SplitQuadObject(theObject, Diag13)

def smeshDC.Mesh.SplitVolumesIntoTetra (   self,
  elemIDs,
  method = Hex_5Tet 
)

Splits volumic elements into tetrahedrons.

Parameters:
elemIDseither list of elements or mesh or group or submesh
methodflags passing splitting method: Hex_5Tet, Hex_6Tet, Hex_24Tet Hex_5Tet - split the hexahedron into 5 tetrahedrons, etc

Definition at line 2636 of file smeshDC.py.

02636 
02637     def SplitVolumesIntoTetra(self, elemIDs, method=Hex_5Tet ):
02638         if isinstance( elemIDs, Mesh ):
02639             elemIDs = elemIDs.GetMesh()
02640         if ( isinstance( elemIDs, list )):
02641             elemIDs = self.editor.MakeIDSource(elemIDs, SMESH.VOLUME)
02642         self.editor.SplitVolumesIntoTetra(elemIDs, method)