Model.add_or_get_material

Model.add_or_get_material(material)

Add a material to the model or retrieve an existing instance of the same type.

Parameters:
materialMaterial

A material.

Returns:
Material