Click or drag to resize

RhinoObjectGetMaterial Method (ComponentIndex, Guid)

Get the Material associated with the sub object identified by componentIndex if the component index is set to ComponentIndex.Unset then the top level material is returned.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Material GetMaterial(
	ComponentIndex componentIndex,
	Guid plugInId
)

Parameters

componentIndex
Type: Rhino.GeometryComponentIndex
Returns the material associated with the specified sub object or the objects top level material if it is set to ComponentIndex.Unset
plugInId
Type: SystemGuid
The plug-in specific material to look for.

Return Value

Type: Material
Returns the Material associated with the sub object identified by componentIndex if the component index is set to ComponentIndex.Unset then the top level material is returned.
Version Information

Rhino for Windows

Supported in: 6.0 BETA
See Also