Click or drag to resize

RhinoObjectGetRenderMaterial Method (Boolean)

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 null is returned. If null is returned you should call GetMaterial to get the material used to render this object.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.10
public RenderMaterial GetRenderMaterial(
	bool frontMaterial


Type: SystemBoolean
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.

Return Value

Type: RenderMaterial
If there is a RenderMaterial associated with this objects' associated Material then it is returned otherwise; null is returned.
See Also