PhysicalProperties.getPrincipalAxes Method

Parent Object: PhysicalProperties
Defined 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

Type Description
boolean Returns true if successful

Parameters

Name Type Description
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

Name Description
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