SceneModule Overview
SceneModule Overview
MeshSurface

MeshSurface

The MeshSurface class describes a surface in a mesh.

Properties

PropertyDescription
name
(get) name: string
(set) name: string


Returns the surface name.

Methods

MethodDescription
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.

Was this article helpful?