PhysicalProperties.getPrincipalAxes Method
Parent Object:
PhysicalPropertiesDefined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/PhysicalProperties.h>
Description
Method that returns the principal axes.
Syntax
"physicalProperties_var" is a variable referencing a PhysicalProperties object.
(returnValue, xAxis, yAxis, zAxis) = physicalProperties_var.getPrincipalAxes() |
#include <Fusion/Fusion/PhysicalProperties.h
// Declare the output arguments. Ptr<Vector3D> xAxis; Ptr<Vector3D> yAxis; Ptr<Vector3D> zAxis; boolean returnValue = physicalProperties_var->getPrincipalAxes(xAxis, yAxis, zAxis);
|
Return Value
| boolean |
Returns true if successful |
Parameters
| xAxis |
Vector3D |
The output Vector3D object that indicates the direction of the x axis. |
| yAxis |
Vector3D |
The output Vector3D object that indicates the direction of the y axis. |
| zAxis |
Vector3D |
The output Vector3D object that indicates the direction of the z axis. |
Samples
| Get Physical Properties API Sample |
Script that demonstrates getting physical properties using the API. When this script is run it will create a new document, build a simple model, and get the various physical properties from the model. |
Version
Introduced in version May 2016