Description:
Syntax:
Parameters:
- frontMaterial
- Type: bool
- If true, gets the material used to render the object's front side otherwise; gets the material used to render the back side of the object.
Returns:
Type: RenderMaterial
If there is a RenderMaterial associated with this objects' associated Material then it is returned otherwise; None is returned.
Description:
Syntax:
public RenderMaterial GetRenderMaterial(
ComponentIndex componentIndex,
Guid plugInId,
ObjectAttributes attributes
)
ComponentIndex componentIndex,
Guid plugInId,
ObjectAttributes attributes
)
Parameters:
- componentIndex
- Type: ComponentIndex
- Returns the RenderMaterial associated with the specified sub object or the objects top level material if it is set to Rhino.Geometry.ComponentIndex.Unset
- plugInId
- Type: System.Guid
- The plug-in specific material to look for.
- attributes
- Type: ObjectAttributes
- Optional object attributes used to determine the material source, if None the objects attributes are used.
Returns:
Type: RenderMaterial
Returns the <b>RenderMaterial</b> associated with the sub object identified by componentIndex if the component index is set to <b>ComponentIndex.Unset</b> then the top level RenderMaterail is returned. If this method returns None it means there is no RenderMaterial associated with the object or sub object so you should may GetMaterial get the objects generic material.
Description:
Syntax:
Parameters:
- componentIndex
- Type: ComponentIndex
- Returns the RenderMaterial associated with the specified sub object or the objects top level material if it is set to Rhino.Geometry.ComponentIndex.Unset
- plugInId
- Type: System.Guid
- The plug-in specific material to look for.
Returns:
Type: RenderMaterial
Returns the <b>RenderMaterial</b> associated with the sub object identified by componentIndex if the component index is set to <b>ComponentIndex.Unset</b> then the top level RenderMaterail is returned. If this method returns None it means there is no RenderMaterial associated with the object or sub object so you should may GetMaterial get the objects generic material.
Description:
Syntax:
Parameters:
- componentIndex
- Type: ComponentIndex
- Returns the RenderMaterial associated with the specified sub object or the objects top level material if it is set to ComponentIndex.Unset
Returns:
Type: RenderMaterial
Returns the <b>RenderMaterial</b> associated with the sub object identified by componentIndex if the component index is set to <b>ComponentIndex.Unset</b> then the top level RenderMaterail is returned. If this method returns None it means there is no RenderMaterial associated with the object or sub object so you should may GetMaterial get the objects generic material.