Back to index

salome-smesh  6.5.0
Functions
Uniting triangles
Modifying meshes
Collaboration diagram for Uniting triangles:

Functions

def smeshDC.Mesh.DeleteDiag
 Replaces two neighbour triangles sharing Node1-Node2 link with a quadrangle built on the same 4 nodes.
def smeshDC.Mesh.TriToQuad
 Fuses the neighbouring triangles into quadrangles.
def smeshDC.Mesh.TriToQuadObject
 Fuses the neighbouring triangles of the object into quadrangles.

Function Documentation

def smeshDC.Mesh.DeleteDiag (   self,
  NodeID1,
  NodeID2 
)

Replaces two neighbour triangles sharing Node1-Node2 link with a quadrangle built on the same 4 nodes.

Parameters:
NodeID1the ID of the first node
NodeID2the ID of the second node
Returns:
false if proper faces were not found

Definition at line 2524 of file smeshDC.py.

02524 
02525     def DeleteDiag(self, NodeID1, NodeID2):
02526         return self.editor.DeleteDiag(NodeID1, NodeID2)

def smeshDC.Mesh.TriToQuad (   self,
  IDsOfElements,
  theCriterion,
  MaxAngle 
)

Fuses the neighbouring triangles into quadrangles.

Parameters:
IDsOfElementsThe triangles to be fused,
theCriterionis FT_...; used to choose a neighbour to fuse with.
MaxAngleis the maximum angle between element normals at which the fusion is still performed; theMaxAngle is mesured in radians. Also it could be a name of variable which defines angle in degrees.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2553 of file smeshDC.py.

02553 
02554     def TriToQuad(self, IDsOfElements, theCriterion, MaxAngle):
02555         flag = False
02556         if isinstance(MaxAngle,str):
02557             flag = True
02558         MaxAngle,Parameters,hasVars = ParseAngles(MaxAngle)
02559         self.mesh.SetParameters(Parameters)
02560         if not IDsOfElements:
02561             IDsOfElements = self.GetElementsId()
02562         Functor = 0
02563         if ( isinstance( theCriterion, SMESH._objref_NumericalFunctor ) ):
02564             Functor = theCriterion
02565         else:
02566             Functor = self.smeshpyD.GetFunctor(theCriterion)
02567         return self.editor.TriToQuad(IDsOfElements, Functor, MaxAngle)

Here is the call graph for this function:

def smeshDC.Mesh.TriToQuadObject (   self,
  theObject,
  theCriterion,
  MaxAngle 
)

Fuses the neighbouring triangles of the object into quadrangles.

Parameters:
theObjectis mesh, submesh or group
theCriterionis FT_...; used to choose a neighbour to fuse with.
MaxAnglea max angle between element normals at which the fusion is still performed; theMaxAngle is mesured in radians.
Returns:
TRUE in case of success, FALSE otherwise.

Definition at line 2575 of file smeshDC.py.

02575 
02576     def TriToQuadObject (self, theObject, theCriterion, MaxAngle):
02577         MaxAngle,Parameters,hasVars = ParseAngles(MaxAngle)
02578         self.mesh.SetParameters(Parameters)
02579         if ( isinstance( theObject, Mesh )):
02580             theObject = theObject.GetMesh()
02581         return self.editor.TriToQuadObject(theObject, self.smeshpyD.GetFunctor(theCriterion), MaxAngle)

Here is the call graph for this function: