MeshBody.volume Property

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

Description

Returns the volume in cm ^ 3. Returns 0 in the case the mesh body is not closed.

Syntax

"meshBody_var" is a variable referencing a MeshBody object.
# Get the value of the property.
propertyValue = meshBody_var.volume
"meshBody_var" Is a variable referencing a MeshBody Object.
#include <Fusion/MeshBody/MeshBody.h>

// Get the value of the property.
double propertyValue = meshBody_var->volume();
"meshBody_var" Is a variable referencing a MeshBody Object.
// Get the value of the property.
propertyValue = meshBody_var.volume;

Property Value

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

Version

Introduced in version January 2024