Click or drag to resize

MaterialTableAdd Method (Material, Boolean)

Adds a new material to the table based on a given material.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
public int Add(
	Material material,
	bool reference


Type: Rhino.DocObjectsMaterial
A model of the material to be added.
Type: SystemBoolean
true if this material is supposed to be a reference material. Reference materials are not saved in the file.

Return Value

Type: Int32
The position of the new material in the table.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also