Click or drag to resize

RenderPrimitiveListMaterial Method

Call this method to get the render material associated with the mesh at the specified index. Will return null if there is no material associated with the requested mesh.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public RenderMaterial Material(
	int index
)

Parameters

index
Type: SystemInt32
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.

Return Value

Type: RenderMaterial
If there is a render material associated at the requested index then the material is returned otherwise null is returned.
Version Information

Rhino for Windows

Supported in: 6.2
See Also