Description:

Gets the RenderMaterial that this object uses based on it's attributes and the document that the object is associated with. If there is no RenderMaterial associated with this object then None is returned. If None is returned you should call GetMaterial to get the material used to render this object.

Syntax:
public RenderMaterial GetRenderMaterial(
bool frontMaterial
)
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:
If there is a RenderMaterial associated with this objects' associated Material then it is returned otherwise; None is returned.
Available since:
5.10

Description:

Gets the RenderMaterial associated with this object if there is one. If there is no RenderMaterial associated with this object then None is returned. If None is returned you should call GetMaterial to get the material used to render this object.

Syntax:
public RenderMaterial GetRenderMaterial(
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:
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.
Available since:
6.0

Description:

Gets the RenderMaterial associated with this object if there is one. If there is no RenderMaterial associated with this object then None is returned. If None is returned you should call GetMaterial to get the material used to render this object.

Syntax:
public RenderMaterial GetRenderMaterial(
ComponentIndex componentIndex,
Guid plugInId
)
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:
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.
Available since:
6.0

Description:

Gets the RenderMaterial associated with this object if there is one. If there is no RenderMaterial associated with this object then None is returned. If None is returned you should call GetMaterial to get the material used to render this object.

Syntax:
public RenderMaterial GetRenderMaterial(
ComponentIndex componentIndex
)
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:
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.
Available since:
6.0

GetRenderMaterial method

Class:  Rhino.DocObjects.RhinoObject

Nothing found