Interface SceneGeometryParams

Non-compressed geometry parameters for SceneModel.createGeometry.

See @xeokit/sdk/scene for usage.

interface SceneGeometryParams {
    colors?: FloatArrayParam;
    colorsCompressed?: IntArrayParam;
    id: string;
    indices?: IntArrayParam;
    positions: FloatArrayParam;
    primitive: number;
    uvs?: FloatArrayParam;
}

Properties

Flat array of uncompressed RGBA floating-point vertex colors. Each color is represented as four consecutive floats in the order RGBA, where each component is in the range [0.0, 1.0].

colorsCompressed?: IntArrayParam

Flat array of compressed integer RGBA vertex colors. This overrides the colors parameter. Each color is represented as four consecutive 8-bit unsigned integers in the order RGBA, where each component is in the range [0, 255].

id: string

ID for the geometry.

indices?: IntArrayParam

Flat array of primitive connectivity indices.

Ignored for primitive type constants!PointsPrimitive, which does not need indices.

positions: FloatArrayParam

Flat array of uncompressed floating point 3D vertex positions.

primitive: number