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

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

02735                                           :
02736         return self.editor.DeleteDiag(NodeID1, NodeID2)

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

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

02764                                                               :
02765         flag = False
02766         if isinstance(MaxAngle,str):
02767             flag = True
02768         MaxAngle,Parameters = geompyDC.ParseParameters(MaxAngle)
02769         if flag:
02770             MaxAngle = DegreesToRadians(MaxAngle)
02771         if IDsOfElements == []:
02772             IDsOfElements = self.GetElementsId()
02773         self.mesh.SetParameters(Parameters)
02774         Functor = 0
02775         if ( isinstance( theCriterion, SMESH._objref_NumericalFunctor ) ):
02776             Functor = theCriterion
02777         else:
02778             Functor = self.smeshpyD.GetFunctor(theCriterion)
02779         return self.editor.TriToQuad(IDsOfElements, Functor, MaxAngle)

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

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

02788                                                                  :
02789         if ( isinstance( theObject, Mesh )):
02790             theObject = theObject.GetMesh()
02791         return self.editor.TriToQuadObject(theObject, self.smeshpyD.GetFunctor(theCriterion), MaxAngle)

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