Version: 6.3.1
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 
) [inherited]

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 2838 of file smeshDC.py.

02839                                                 :
02840         return self.editor.BestSplit(IDOfQuad, self.smeshpyD.GetFunctor(theCriterion))

def smeshDC.Mesh.QuadToTri (   self,
  IDsOfElements,
  theCriterion 
) [inherited]

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 2797 of file smeshDC.py.

02798                                                      :
02799         if IDsOfElements == []:
02800             IDsOfElements = self.GetElementsId()
02801         return self.editor.QuadToTri(IDsOfElements, self.smeshpyD.GetFunctor(theCriterion))

def smeshDC.Mesh.QuadToTriObject (   self,
  theObject,
  theCriterion 
) [inherited]

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 2807 of file smeshDC.py.

02808                                                        :
02809         if ( isinstance( theObject, Mesh )):
02810             theObject = theObject.GetMesh()
02811         return self.editor.QuadToTriObject(theObject, self.smeshpyD.GetFunctor(theCriterion))

def smeshDC.Mesh.SplitQuad (   self,
  IDsOfElements,
  Diag13 
) [inherited]

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 2817 of file smeshDC.py.

02818                                                :
02819         if IDsOfElements == []:
02820             IDsOfElements = self.GetElementsId()
02821         return self.editor.SplitQuad(IDsOfElements, Diag13)

def smeshDC.Mesh.SplitQuadObject (   self,
  theObject,
  Diag13 
) [inherited]

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 2827 of file smeshDC.py.

02828                                                  :
02829         if ( isinstance( theObject, Mesh )):
02830             theObject = theObject.GetMesh()
02831         return self.editor.SplitQuadObject(theObject, Diag13)

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

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 2846 of file smeshDC.py.

02847                                                               :
02848         if isinstance( elemIDs, Mesh ):
02849             elemIDs = elemIDs.GetMesh()
02850         if ( isinstance( elemIDs, list )):
02851             elemIDs = self.editor.MakeIDSource(elemIDs, SMESH.VOLUME)
02852         self.editor.SplitVolumesIntoTetra(elemIDs, method)

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS