Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Changing orientation of elements

Functions

def Reorient
 Reorient elements by ids. More...
 
def ReorientObject
 Reorient all elements of the object. More...
 
def Reorient2D
 Reorient faces contained in the2DObject. More...
 
def Reorient2DBy3D
 Reorient faces according to adjacent volumes. More...
 

Detailed Description

Function Documentation

def Reorient (   self,
  IDsOfElements = None 
)

Reorient elements by ids.

Parameters
IDsOfElementsif undefined reorients all mesh elements
Returns
True if succeed else False

References Mesh.GetElementsId().

def ReorientObject (   self,
  theObject 
)

Reorient all elements of the object.

Parameters
theObjectmesh, submesh or group
Returns
True if succeed else False
def Reorient2D (   self,
  the2DObject,
  theDirection,
  theFaceOrPoint 
)

Reorient faces contained in the2DObject.

Parameters
the2DObjectis a mesh, sub-mesh, group or list of IDs of 2D elements
theDirectionis a desired direction of normal of theFace. It can be either a GEOM vector or a list of coordinates [x,y,z].
theFaceOrPointdefines a face of the2DObject whose normal will be compared with theDirection. It can be either ID of face or a point by which the face will be found. The point can be given as either a GEOM vertex or a list of point coordinates.
Returns
number of reoriented faces

References Mesh.GetIDSource().

def Reorient2DBy3D (   self,
  the2DObject,
  the3DObject,
  theOutsideNormal = True 
)

Reorient faces according to adjacent volumes.

Parameters
the2DObjectis a mesh, sub-mesh, group or list of either IDs of faces or face groups.
the3DObjectis a mesh, sub-mesh, group or list of IDs of volumes.
theOutsideNormalto orient faces to have their normals pointing either outside or inside the adjacent volumes.
Returns
number of reoriented faces.

References Mesh.GetIDSource().