RFMeshTools.GetPricipalAxisTransformOfModel
Description
Calculates the principal transformation of a model and returns an RFErrorCode value indicating whether an error occurs.
Syntax
Function RFMeshTools.GetPricipalAxisTransformOfModel(pTrans As RFVector3,
pRot As RFVector3) As RFErrorCode
The GetPricipalAxisTransformOfModel syntax has these parts:
| Part |
Description |
| pTrans |
[OUT] RFVector3 Required. Principal translation along X, Y ans Z axis. |
| pRot |
[OUT] RFVector3 Required. Principal rotation around X, Y ans Z axis in radians. |
Remarks
- Principal rotation values around X, Y and Z axis of the global coordinate system minimizes the height of model, that is, all the shells. The height is the difference value between the maximum and the minimum Z coordinates of a shell.
- Principal translation values along X, Y and Z axis of the global coordinate system centers model at the origin of the global coordinate system.
- NURBS curves, NURBS surfaces, reference geometries are not considered for the principal transformation calculation.
Return to Rapidform Index