GH_Material Class |
Namespace: Grasshopper.Kernel.Types
The GH_Material type exposes the following members.
Name | Description | |
---|---|---|
GH_Material | Initializes a new instance of the GH_Material class | |
GH_Material(Color) |
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.
| |
GH_Material(DisplayMaterial) |
Create a new Material.
| |
GH_Material(GH_Material) |
Copy another GH_Material instance.
| |
GH_Material(Guid) |
Create a new Material from an RDK material ID.
| |
GH_Material(RenderMaterial) |
Create a new Material.
| |
GH_Material(String) |
Create a new Material from an RDK xml string.
|
Name | Description | |
---|---|---|
IsValid | (Overrides GH_GooTIsValid.) | |
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_GooTIsValidWhyNot.) | |
RdkMaterialId |
Gets or sets the RDK material ID this material is associated with.
| |
RdkMaterialRmtl |
Gets or sets the RDK material RMTL file path.
| |
RdkMaterialXml |
Gets or sets the RDK material Xml string.
| |
Type |
Gets the implied type based on what fields have been assigned.
| |
TypeDescription | (Overrides GH_GooTTypeDescription.) | |
TypeName | (Overrides GH_GooTTypeName.) | |
Value |
Gets or sets the internal data.
(Inherited from GH_GooT.) |
Name | Description | |
---|---|---|
CastFrom | (Overrides GH_GooTCastFrom(Object).) | |
CastToQ(Q) |
Attempt a cast to type Q.
(Inherited from GH_GooT.) | |
CastToT(T) | (Overrides GH_GooTCastToQ(Q).) | |
CreateRhinoMaterial |
Creates a standard Rhino material from a colour.
| |
CreateStandardMaterial |
Creates a standard Grasshopper material from a colour.
| |
Duplicate |
Duplicate this material.
(Overrides GH_GooTDuplicate.) | |
DuplicateMaterial |
Duplicate this material.
| |
EmitProxy | (Overrides GH_GooTEmitProxy.) | |
MaterialBestGuess |
Gets the best guess RenderMaterial for this shader.
| |
Read | (Overrides GH_GooTRead(GH_IReader).) | |
ScriptVariable | (Overrides GH_GooTScriptVariable.) | |
ToString | (Overrides GH_GooTToString.) | |
Write | (Overrides GH_GooTWrite(GH_IWriter).) |