Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Functions
Uniting triangles
Modifying meshes

Functions

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

Detailed Description

Function Documentation

def 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
def 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.

References Mesh.GetElementsId(), and smesh.ParseAngles().

def 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.

References smesh.ParseAngles().

Copyright © 2007-2012 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