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.
Ptr<Material> propertyValue = meshBody_var->material();

// Set the value of the property, where value_var is a Material.
bool returnValue = meshBody_var->material(value_var);

Property Value

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

Samples

Name Description
Mesh Body Sample Mesh body related functions

Version

Introduced in version August 2016