Version: 9.15.0
Home

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

Public Member Functions

def __init__ (self)
 
def __repr__ (self)
 
def addParams (self, params)
 Add orientation parameters. More...
 
def buildMarker (self, geom, center, vecX)
 Create a marker with origin center and X axis vecX. More...
 
def getVecYZ (self, geom, center, vecX)
 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 (self, center, vecX)
 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

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ addParams()

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.

◆ _getDefaultVecYZ()

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.

References Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ buildMarker()

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().

◆ 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, Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

Field Documentation

◆ geom

geom

◆ _vectorYCoords

_vectorYCoords
private

◆ _angle

_angle
private