Click or drag to resize

RenderPrimitiveListToMaterialArray Method

Call this method to see if there are any RenderMaterials associated with the meshes. Each primitive can optionally have a RenderMaterial associated with it, if the RenderMaterial is null then check for a RhinoObject.RenderMaterial.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public RenderMaterial[] ToMaterialArray()

Return Value

Type: RenderMaterial
Return an array that of the same size as the ToMeshArray() containing the RenderMaterial associated with the mesh, may contain null entries if there is no RenderMaterial associated with the custom mesh.
Version Information

Rhino for Windows

Supported in: 6.6
See Also