Material

class rhino3dm.Material
Material()

Material constructor

Material()

Material constructor

RenderPlugInId

Guid: The Id of the RenderPlugIn that is associated with this material.

RenderMaterialInstanceId
Name
Shine

float: Gets or sets the shine factor of the material.

Transparency

float: Gets or sets the transparency of the material (0.0 = opaque to 1.0 = transparent)

IndexOfRefraction

float: Gets or sets the index of refraction of the material, generally >= 1.0 (speed of light in vacuum)/(speed of light in material)

FresnelIndexOfRefraction

float: Gets or sets the Fresnel index of refraction of the material, default is 1.56

RefractionGlossiness

float: Gets or sets the refraction glossiness.

ReflectionGlossiness

float: Gets or sets the reflection glossiness.

FresnelReflections

bool: Gets or sets if Fresnel reflections are used.

DisableLighting
Reflectivity

float: Gets or sets how reflective a material is, 0f is no reflection 1f is 100% reflective.

PreviewColor

System.Drawing.Color: Very simple preview color function for GUIs.

DiffuseColor
AmbientColor
EmissionColor
SpecularColor
ReflectionColor
TransparentColor
PhysicallyBased
static CompareAppearance(material1, material2)

[todo] add documentation

Default()

Set material to default settings.

Return type:

void

GetTexture(which)

Get the texture that corresponds with the specified texture type for this material.

Return type:

Texture

GetBitmapTexture()
Return type:

Texture

SetBitmapTexture(fileName)
Return type:

bool

SetBitmapTexture(texture)
Return type:

bool

GetBumpTexture()

Gets the bump texture of this material.

Returns:

A texture; or None if no bump texture has been added to this material.

Return type:

Texture

SetBumpTexture(fileName)
Return type:

bool

SetBumpTexture(texture)
Return type:

bool

GetEnvironmentTexture()
Return type:

Texture

SetEnvironmentTexture(fileName)
Return type:

bool

SetEnvironmentTexture(texture)
Return type:

bool

GetTransparencyTexture()
Return type:

Texture

SetTransparencyTexture(fileName)
Return type:

bool

SetTransparencyTexture(texture)
Return type:

bool

ToPhysicallyBased()
Return type:

void