BRepBody.getPhysicalProperties Method

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

Description

Returns the PhysicalProperties object that has properties for getting the area, density, mass, volume, moments, etc of this body.

Syntax

"bRepBody_var" is a variable referencing a BRepBody object.
# Uses no optional arguments.
returnValue = bRepBody_var.getPhysicalProperties()

# Uses optional arguments.
returnValue = bRepBody_var.getPhysicalProperties(accuracy)
"bRepBody_var" is a variable referencing a BRepBody object.

#include <Fusion/BRep/BRepBody.h>

// Uses no optional arguments.
returnValue = bRepBody_var->getPhysicalProperties();

// Uses optional arguments.
returnValue = bRepBody_var->getPhysicalProperties(accuracy);

Return Value

Type Description
PhysicalProperties Returns a PhysicalProperties object that can be used to get the various physical property related values.

Parameters

Name Type Description
accuracy CalculationAccuracy Specifies the desired level of computational accuracy of the property calculations. The default value of 'LowCalculationAccuracy' returns results within a +/- 1% error margin.

This is an optional argument whose default value is CalculationAccuracy.LowCalculationAccuracy.

Version

Introduced in version September 2020