MeshBody.material Property

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

Description

Gets and sets the physical material assigned to this mesh body.

Syntax

"meshBody_var" is a variable referencing a MeshBody object.
# Get the value of the property.
propertyValue = meshBody_var.material

# Set the value of the property.
meshBody_var.material = propertyValue
"meshBody_var" Is a variable referencing a MeshBody Object.
#include <Fusion/MeshBody/MeshBody.h>

// Get the value of the property.
Material propertyValue = meshBody_var->material();

// Set the value of the property, where value_var is a Material.
bool returnValue = meshBody_var->material(value_var);
"meshBody_var" Is a variable referencing a MeshBody Object.
// Get the value of the property.
propertyValue = meshBody_var.material;

// Set the value of the property.
meshBody_var.material = propertyValue;

Property Value

This is a read/write property whose value is a Material.

Samples

Name Description
Mesh Body Sample

Demonstrates mesh-body-related API functions.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2016