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 | |
This class is used to compute the orientation of 1D elements and to build the corresponding markers.
| def __init__ | ( | self | ) |
| def __repr__ | ( | self | ) |
| def addParams | ( | self, | |
| params | |||
| ) |
Add orientation parameters.
params is a dictionary containing one or several orientation parameters. The valid parameters are:
References Orientation1D._angle, and Orientation1D._vectorYCoords.
|
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.
| 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, Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.
| geom |
|
private |
|
private |