Interface SceneMeshParams

Parameters for a SceneMesh.

See @xeokit/sdk/scene for usage.

interface SceneMeshParams {
    color?: FloatArrayParam;
    geometryId: string;
    id: string;
    matrix?: FloatArrayParam;
    opacity?: number;
    origin?: FloatArrayParam;
    pickColor?: FloatArrayParam;
    position?: FloatArrayParam;
    quaternion?: FloatArrayParam;
    rotation?: FloatArrayParam;
    scale?: FloatArrayParam;
    streamLayerIndex?: number;
    textureSetId?: string;
}

Properties

RGB base color of the new SceneMesh.

  • Default is [1,1,1].
geometryId: string
id: string

ID for the new SceneMesh, unique within the SceneModel.

opacity?: number

Opacity of the new SceneMesh.

Default is 1.

Relative-to-center (RTC) origin.

When this is given, then SceneMeshParams.matrix will be relative to this origin.

pickColor?: FloatArrayParam

RGB pick color of the new SceneMesh.

This is used internally within SceneModel.

position?: FloatArrayParam

Optional local 3D translation vector.

quaternion?: FloatArrayParam

Optional local 3D rotation quaternion.

rotation?: FloatArrayParam

Optional local 3D rotation as Euler angles given in degrees, for each of the X, Y and Z axis.

Optional local 3D scale vector.

streamLayerIndex?: number

TODO

textureSetId?: string

ID of a SceneTextureSet that was created previously with SceneModel.createTextureSet.