Version: 9.16.0
Home
Loading...
Searching...
No Matches

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

Public Member Functions

 __init__ (self)
 
 __repr__ (self)
 
 addParams (self, params)
 Add orientation parameters.
 
 buildMarker (self, geom, center, vecX)
 Create a marker with origin center and X axis vecX.
 
 getVecYZ (self, geom, center, vecX)
 Get the vectors Y and Z for the LCS with origin center and X axis vecX.
 

Data Fields

 geom
 

Protected Member Functions

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

Protected 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__()

__init__ (   self)

Member Function Documentation

◆ __repr__()

__repr__ (   self)

◆ addParams()

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

_getDefaultVecYZ (   self,
  center,
  vecX 
)
protected

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

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

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
protected

◆ _angle

_angle
protected