PhysicalProperties.centerOfMass Property

Parent Object: PhysicalProperties
Defined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/PhysicalProperties.h>

Description

Returns the center of mass position

Syntax

"physicalProperties_var" is a variable referencing a PhysicalProperties object.

# Get the value of the property.
propertyValue = physicalProperties_var.centerOfMass
"physicalProperties_var" is a variable referencing a PhysicalProperties object.
#include <Fusion/Fusion/PhysicalProperties.h>

// Get the value of the property.
Ptr<Point3D> propertyValue = physicalProperties_var->centerOfMass();

Property Value

This is a read only property whose value is a Point3D.

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