RhinoObject.GetMaterial Method (Boolean)

RhinoObjectGetMaterial Method (Boolean)

Gets material that this object uses based on it's attributes and the document that the object is associated with. In the rare case that a document is not associated with this object, null will be returned.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Material GetMaterial(
	bool frontMaterial
)
Public Function GetMaterial ( 
	frontMaterial As Boolean
) As Material

Parameters

frontMaterial
Type: SystemBoolean
If true, gets the material used to render the object's front side

Return Value

Type: Material

[Missing <returns> documentation for "M:Rhino.DocObjects.RhinoObject.GetMaterial(System.Boolean)"]

Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also