Public Member Functions | |
| def | __init__ |
| def | __repr__ |
| def | addParams |
| def | buildMarker |
| def | getVecYZ |
Data Fields | |
| geom | |
Private Member Functions | |
| def | _getDefaultVecYZ |
Private Attributes | |
| _vectorYCoords | |
| _angle | |
This class is used to compute the orientation of 1D elements and to build the corresponding markers.
| def GEOM_PY.structelem.orientation.Orientation1D.__init__ | ( | self | ) |
| def GEOM_PY.structelem.orientation.Orientation1D.__repr__ | ( | self | ) |
| def GEOM_PY.structelem.orientation.Orientation1D.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 first "VECT_Y" is taken into account, and the values of "ANGL_VRIL" are added to obtain the total rotation angle.
| def GEOM_PY.structelem.orientation.Orientation1D._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 GEOM_PY.structelem.orientation.Orientation1D.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.
| def GEOM_PY.structelem.orientation.Orientation1D.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.