Click or drag to resize

DisplayAttributeMaterial Class

One side of the material the display pipeline shades an object with. A texture-style VisualAnalysisMode sets its texture up here from SetUpDisplayAttributes.
Inheritance Hierarchy
SystemObject
  Rhino.DisplayDisplayAttributeMaterial

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class DisplayAttributeMaterial

The DisplayAttributeMaterial type exposes the following members.

Properties
  NameDescription
Public propertyDiffuse
Diffuse color.
Public propertyDisableLighting
When true the material is drawn at full diffuse color, ignoring the scene lights.
Public propertyEmission
Emission color.
Public propertyFlatShaded
Shades with no smoothing, so the individual render mesh faces are visible.
Public propertyIndexOfRefraction
Index of refraction.
Public propertyLuminosity
Luminosity.
Public propertyOverrideObjectColor
Objects acquire color from render materials.
Public propertyOverrideObjectReflectivity
Objects acquire reflectivity from render materials.
Public propertyOverrideObjectTransparency
Objects acquire transparency from render materials.
Public propertyReflectivity
Reflectivity, 0.0 to 1.0.
Public propertyShine
Shine, 0 to MaxShine.
Public propertyShineIntensity
Shine intensity.
Public propertyTransparency
Transparency, 0.0 opaque to 1.0 transparent.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTexture
Gets the texture of the given type, or null when this material has none.
Public methodGetTextures
Gets every texture this material uses.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveTexture
Removes every texture of the given type.
Public methodSetTexture
Assigns a texture, replacing any texture this material already has of the same type.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Valid for as long as the DisplayPipelineAttributes it came from, the same as MeshSpecificAttributes. The attributes passed to SetUpDisplayAttributes belong to the display pipeline and are disposed when that call returns; using this afterwards does nothing rather than reaching freed memory.
See Also