RhinoCommon API
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)

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)"]

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8