A mesh in a SceneModel.

See @xeokit/scene for usage.

Properties

geometry: SceneGeometry

@xeokit/scene!SceneGeometry used by this SceneMesh.

id: string

Unique ID of this SceneMesh.

SceneMesh is stored by this ID in @xeokit/scene!SceneModel.meshes.

object: SceneObject

The @xeokit/scene!SceneObject that uses this SceneMesh.

origin: FloatArrayParam
rendererMesh: RendererMesh

Internal interface through which a @xeokit/scene!SceneMesh can load property updates into a renderers.

This is defined when the owner SceneModel has been added to a Viewer.

streamLayerIndex: number

TODO

textureSet?: SceneTextureSet

@xeokit/scene!SceneTextureSet used by this SceneMesh.

tile: SceneTile

@xeokit/scene!SceneTile this SceneMesh belongs to.

Accessors

  • get aabb(): FloatArrayParam
  • Gets the World-space AABB of this SceneMesh.

    Returns FloatArrayParam

  • get color(): FloatArrayParam
  • Gets the RGB color for this SceneMesh.

    Each element of the color is in range [0..1].

    Returns FloatArrayParam

  • set color(value): void
  • Sets the RGB color for this SceneMesh.

    Each element of the color is in range [0..1].

    Parameters

    • value: FloatArrayParam

    Returns void

  • get matrix(): FloatArrayParam
  • Gets this SceneMesh's local modeling transform matrix.

    Default value is [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1].

    Returns FloatArrayParam

  • set matrix(matrix): void
  • Updates this SceneMesh's local modeling transform matrix.

    Default value is [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1].

    Parameters

    • matrix: FloatArrayParam

    Returns void

  • get opacity(): number
  • Gets the opacity factor for this SceneMesh.

    This is a factor in range [0..1].

    Returns number

  • set opacity(opacity): void
  • Sets the opacity factor for this SceneMesh.

    This is a factor in range [0..1].

    Parameters

    • opacity: number

    Returns void

  • get rtcMatrix(): FloatArrayParam
  • Internal

    Gets this SceneMesh's RTC modeling transform matrix.

    Default value is [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1].

    Returns FloatArrayParam

Methods