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 | null> Returns a promise that is resolved with the material associated with a given scene object or null if no material was assigned. |
setMaterial | setMaterial(m: MaterialBase): Promise<null> Returns a promise that is resolved when given material is associated with a given scene object. |