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)
Syntaxpublic Material GetMaterial(
ComponentIndex componentIndex,
Guid plugInId
)
Public Function GetMaterial (
componentIndex As ComponentIndex,
plugInId As Guid
) 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.
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 InformationRhino for Windows
Supported in: 6.8
See Also