RhinoObjectGetMaterial Method (ComponentIndex, Guid, ObjectAttributes) |
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)
Since: 6.0
Syntax public Material GetMaterial(
ComponentIndex componentIndex,
Guid plugInId,
ObjectAttributes attributes
)
Public Function GetMaterial (
componentIndex As ComponentIndex,
plugInId As Guid,
attributes As ObjectAttributes
) As Material
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.
- attributes
- Type: Rhino.DocObjectsObjectAttributes
Optional object attributes used to determine the material source, if
null the objects attributes are used.
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.
See Also