Interface SceneMeshParams

Parameters for a SceneMesh.

See @xeokit/sdk/scene for usage.

interface SceneMeshParams {
    color?: Vec3;
    geometryId: string;
    id: string;
    matrix?: Mat4;
    opacity?: number;
    origin?: Vec3;
    parentTransformId?: string;
    pickColor?: Vec4;
    position?: Vec3;
    quaternion?: Quat;
    rotation?: Vec3;
    scale?: Vec3;
    textureSetId?: string;
}

Properties

color?: Vec3

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.

matrix?: Mat4
opacity?: number

Opacity of the new SceneMesh.

Default is 1.

origin?: Vec3

Relative-to-center (RTC) origin.

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

parentTransformId?: string

ID of the parent ViewTransform that was created previously with SceneModel.createTransform.

pickColor?: Vec4

RGB pick color of the new SceneMesh.

This is used internally within SceneModel.

position?: Vec3

Optional local 3D translation vector.

quaternion?: Quat

Optional local 3D rotation quaternion.

rotation?: Vec3

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

scale?: Vec3

Optional local 3D scale vector.

textureSetId?: string

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