SceneModule Overview
SceneModule Overview
MeshSurface

MeshSurface

The MeshSurface class describes a surface in a mesh.

Properties

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


Returns the surface name.

Methods

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