Represents a implementation of the Rhino material

Constructors

GH_Material

#
public GH_Material()

GH_Material

#
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.
public GH_Material(
Color
diffuse
The diffuse colour of the material.
)

GH_Material

#
Create a new Material.
public GH_Material(
material
Material to use (an internal copy will be made).
)

GH_Material

#
Copy another GH_Material instance.
public GH_Material(
GH_Material
other
Material to mimic.
)

GH_Material

#
Create a new Material from an RDK material ID.
public GH_Material(
rdkId
ID of RDK material.
)

GH_Material

#
Create a new Material.
public GH_Material(
material
Material to use (an internal copy will be made).
)

GH_Material

#
Create a new Material from an RDK xml string.
public GH_Material(
rdkXml
Xml of RDK material.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public override string IsValidWhyNot { get; }

RdkMaterialId

#
Gets or sets the RDK material ID this material is associated with.
public Guid RdkMaterialId { get; set; }

RdkMaterialRmtl

#
Gets or sets the RDK material RMTL file path.
public string RdkMaterialRmtl { get; set; }

RdkMaterialXml

#
Gets or sets the RDK material Xml string.
public string RdkMaterialXml { get; set; }

Type

#
Gets the implied type based on what fields have been assigned.
public GH_Material.MaterialType Type { get; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

Gets or sets the internal data.
public virtual T Value { get; set; }
inherited fromGH_Goo<T>

Methods

CastFrom

#
public override bool CastFrom(
source
)

CastTo<T>

#
public override bool CastTo<T>(
ref T
target
)
GH_Goo<T>.CastTo

CreateRhinoMaterial

#
Creates a standard Rhino material from a colour.
public static Material CreateRhinoMaterial(
Color
colour
Base colour for material.
)

CreateStandardMaterial

#
Creates a standard Grasshopper material from a colour.
public static DisplayMaterial CreateStandardMaterial(
Color
colour
Base colour for material.
)

Duplicate

#
Duplicate this material.
public override IGH_Goo Duplicate()
An exact duplicate of this material.

DuplicateMaterial

#
Duplicate this material.
public GH_Material DuplicateMaterial()
An exact duplicate of this material.

EmitProxy

#
public override IGH_GooProxy EmitProxy()

MaterialBestGuess

#
Gets the best guess RenderMaterial for this shader.
public RenderMaterial MaterialBestGuess()
Material which best describes this shader.

Read

#
public override bool Read(
reader
)
GH_Goo<T>.Read

ScriptVariable

#
public override object ScriptVariable()

ToString

#
public override string ToString()

Write

#
public override bool Write(
writer
)
GH_Goo<T>.Write