ObjectAttributes.MaterialRefs Property

ObjectAttributesMaterialRefs Property

If you are developing a high quality plug-in renderer, and a user is assigning a custom render material to this object, then add rendering material information to the MaterialRefs dictionary. Note to developers: As soon as the MaterialRefs dictionary contains items rendering material queries slow down. Do not populate the MaterialRefs dictionary when setting the MaterialIndex will take care of your needs.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public MaterialRefs MaterialRefs { get; }
Public ReadOnly Property MaterialRefs As MaterialRefs
	Get

Property Value

Type: MaterialRefs
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also