Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Orientation1D Class Reference

This class is used to compute the orientation of 1D elements and to build the corresponding markers. More...

Public Member Functions

def __init__
 
def __repr__
 
def addParams
 Add orientation parameters. More...
 
def buildMarker
 Create a marker with origin center and X axis vecX. More...
 
def getVecYZ
 Get the vectors Y and Z for the LCS with origin center and X axis vecX. More...
 

Data Fields

 geom
 

Private Member Functions

def _getDefaultVecYZ
 Get the vectors Y and Z for the default LCS, that use the main direction of the 1D object as the local X axis and the global Z axis to determine the local Z axis. More...
 

Private Attributes

 _vectorYCoords
 
 _angle
 

Detailed Description

This class is used to compute the orientation of 1D elements and to build the corresponding markers.

Constructor & Destructor Documentation

def __init__ (   self)

Member Function Documentation

def __repr__ (   self)
def addParams (   self,
  params 
)

Add orientation parameters.

params is a dictionary containing one or several orientation parameters. The valid parameters are:

  • "VECT_Y": Triplet defining the local Y axis (the X axis is the main direction of the 1D element).
  • "ANGL_VRIL": Angle of rotation along the X axis to define the local coordinate system. The parameters can be specified several times. In this case, only the last "VECT_Y" or "ANGL_VRIL" is taken into account.

References Orientation1D._angle, and Orientation1D._vectorYCoords.

def _getDefaultVecYZ (   self,
  center,
  vecX 
)
private

Get the vectors Y and Z for the default LCS, that use the main direction of the 1D object as the local X axis and the global Z axis to determine the local Z axis.

def buildMarker (   self,
  geom,
  center,
  vecX 
)

Create a marker with origin center and X axis vecX.

geom is the pseudo-geompy object used to build the geometric shapes.

References Orientation1D.getVecYZ().

def getVecYZ (   self,
  geom,
  center,
  vecX 
)

Get the vectors Y and Z for the LCS with origin center and X axis vecX.

geom is the pseudo-geompy object used to build the geometric shapes.

References Orientation1D._angle, Orientation1D._getDefaultVecYZ(), Orientation1D._vectorYCoords, and Orientation1D.geom.

Field Documentation

geom
_vectorYCoords
private
_angle
private