Method SetMaterial
SetMaterial(IEnumerable<Face>, Material)
Sets a specific material on a collection of faces.
Declaration
public void SetMaterial(IEnumerable<Face> faces, Material material)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Face> | faces | The faces to apply the material to. |
Material | material | The material to apply. |
Remarks
To apply the changes to the Mesh, call ToMesh(MeshTopology) and Refresh(RefreshMask).