Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Uniting triangles

Functions

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

Detailed Description

Function Documentation

def DeleteDiag (   self,
  NodeID1,
  NodeID2 
)

Replace 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 
)

Fuse the neighbouring triangles into quadrangles.

Parameters
IDsOfElementsThe triangles to be fused.
theCriteriona numerical functor, in terms of enum SMESH.FunctorType, used to applied to possible quadrangles to choose a neighbour to fuse with. Type SMESH.FunctorType._items in the Python Console to see all items. Note that not all items correspond to numerical functors.
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 smeshBuilder.ParseAngles().

def TriToQuadObject (   self,
  theObject,
  theCriterion,
  MaxAngle 
)

Fuse the neighbouring triangles of the object into quadrangles.

Parameters
theObjectis mesh, submesh or group
theCriterionis a numerical functor, in terms of enum SMESH.FunctorType, applied to possible quadrangles to choose a neighbour to fuse with. Type SMESH.FunctorType._items in the Python Console to see all items. Note that not all items correspond to numerical functors.
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 smeshBuilder.ParseAngles().