import {SceneModelMesh} from '@xeokit/xeokit-sdk/src/viewer/scene/model/SceneModelMesh.js'
SceneModelMesh
A mesh within a SceneModel.
- Created with SceneModel#createMesh
- Belongs to exactly one SceneModelEntity
- Stored by ID in SceneModel#meshes
- Referenced by SceneModelEntity#meshes
- Can have a SceneModelTransform to dynamically scale, rotate and translate it.
Member Summary
Public Members | ||
public |
The SceneModelEntity that owns this SceneModelMesh. |
|
public |
id: * Unique ID of this SceneModelMesh. |
|
public |
The SceneModel that owns this SceneModelMesh. |
|
public |
The SceneModelEntity that owns this SceneModelMesh. |
|
public get |
surfaceArea: number: * Returns the surface area of this SceneModelMesh. |
|
public |
The SceneModelTextureSet that optionally textures this SceneModelMesh. |
|
public |
The SceneModelTransform that transforms this SceneModelMesh. |
|
public get |
Returns the volume of this SceneModelMesh. |
Public Members
public id: * source
Unique ID of this SceneModelMesh.
The SceneModelMesh is registered against this ID in SceneModel#meshes.
public textureSet: SceneModelTextureSet source
The SceneModelTextureSet that optionally textures this SceneModelMesh.
- This only exists when the SceneModelMesh has texture.
- These are created with SceneModel#createTextureSet
- Each of these is also registered in SceneModel#textureSets.
public transform: SceneModelTransform source
The SceneModelTransform that transforms this SceneModelMesh.
- This only exists when the SceneModelMesh is instancing its geometry.
- These are created with SceneModel#createTransform
- Each of these is also registered in SceneModel#transforms.