The MeshSurface class describes a surface in a mesh.
| Property | Description |
|---|---|
name | (get) name: string Returns the surface name. |
| Method | Description |
|---|---|
getMaterial | getMaterial(): Promise<MaterialBase> Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned. |
setMaterial | setMaterial(MaterialBase): Promise Returns a promise that is resolved when given material is associated with a given scene object. |