Interface SceneGeometryCompressedParams

Pre-compressed geometry creation parameters for SceneModel.createGeometryCompressed.

See @xeokit/sdk/scene for usage.

interface SceneGeometryCompressedParams {
    aabb?: FloatArrayParam;
    colorsCompressed?: IntArrayParam;
    edgeIndices?: IntArrayParam;
    id: string;
    indices?: IntArrayParam;
    origin?: FloatArrayParam;
    positionsCompressed: IntArrayParam;
    primitive: number;
    uvsCompressed?: IntArrayParam;
    uvsDecompressMatrix?: FloatArrayParam;
}

Properties

Axis-aligned, non-quantized 3D boundary of the geometry's vertex positions.

colorsCompressed?: IntArrayParam

vertex RGB colors, quantized as 8-bit integers.

edgeIndices?: IntArrayParam

edge indices.

This is either an array of 8-bit, 16-bit or 32-bit values.

id: string

ID for the geometry.

indices?: IntArrayParam

primitive indices.

This is either an array of 8-bit, 16-bit or 32-bit values.

TODO

positionsCompressed: IntArrayParam

3D vertex positions, quantized as 16-bit integers.

Internally, the Viewer decompresses thses with SceneGeometryCompressedParams.aabb.

Vertex positions are required for all primitive types.

primitive: number
uvsCompressed?: IntArrayParam

UV coordinates, quantized as 16-bit integers.

Internally, the Viewer de-quantizes these with SceneGeometryCompressedParams.uvsDecompressMatrix.

uvsDecompressMatrix?: FloatArrayParam

4x4 matrix to de-quantize the geometry's UV coordinates, when UVs are provided.