Represents a implementation of the Rhino material
Constructors
GH_Material
#public GH_Material()
GH_Material
#public GH_Material(Color diffuse)
Create a new material based on a colour. The colour is used to control Diffuse, Emission and Transparency. Ambient, Specular and Shine are always default.
Parameters:
| diffuse (Color) | The diffuse colour of the material. |
GH_Material
#Create a new Material.
Parameters:
| material (DisplayMaterial) | Material to use (an internal copy will be made). |
GH_Material
#public GH_Material(GH_Material other)
Copy another GH_Material instance.
Parameters:
| other (GH_Material) | Material to mimic. |
GH_Material
#Create a new Material from an RDK material ID.
Parameters:
| rdkId (Guid) | ID of RDK material. |
GH_Material
#Create a new Material.
Parameters:
| material (RenderMaterial) | Material to use (an internal copy will be made). |
Fields
m_value
protected T m_value
Properties
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
Value
public virtual T Value { get; set; }
Gets or sets the internal data.
Methods
CastFrom
#Parameters:
| source (object) |
Overrides: GH_Goo<T>.CastFrom
CreateRhinoMaterial
#Creates a standard Rhino material from a colour.
Parameters:
| colour (Color) | Base colour for material. |
CreateStandardMaterial
#Creates a standard Grasshopper material from a colour.
Parameters:
| colour (Color) | Base colour for material. |
Duplicate
#Duplicate this material.
Returns: An exact duplicate of this material.
Overrides: GH_Goo<T>.Duplicate
MaterialBestGuess
#Gets the best guess RenderMaterial for this shader.
Returns: Material which best describes this shader.