RhinoCommon API
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)
Since: 6.0
public 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: MaterialReturns 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.