RhinoObjectGetMaterial Method (ComponentIndex) |
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
)
Public Function GetMaterial (
componentIndex As ComponentIndex
) 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
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