Interface SceneGeometryParams

Non-compressed geometry parameters for SceneModel.createGeometry.

See @xeokit/sdk/model/scene for usage.

interface SceneGeometryParams {
    colors?: FloatArrayParam;
    colorsCompressed?: IntArrayParam;
    id: string;
    indices?: IntArrayParam;
    normals?: FloatArrayParam;
    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 PointsPrimitive, which does not need indices.

normals?: FloatArrayParam

Flat array of uncompressed floating-point 3D vertex normals.

Optional. When supplied, the renderer uses these for smooth shading; when omitted, the fragment shader derives a flat face normal from position derivatives.

Length must equal positions.length. Ignored for LinesPrimitive and PointsPrimitive.

positions: FloatArrayParam

Flat array of uncompressed floating point 3D vertex positions.

primitive: number