IFClite TypeScript API
    Preparing search index...

    Interface SharedShape

    One vertex/index block the server sent once, and every row placing it.

    interface SharedShape {
        flat_before?: number;
        index_start: number;
        indices: Uint32Array;
        normals: Float32Array;
        occurrences: SharedShapeOccurrence[];
        positions: Float32Array;
        stream_wide: boolean;
        vertex_start: number;
    }
    Index
    flat_before?: number

    Rows naming this block that earlier table sets of the stream decoded FLAT, before anything showed the block repeats (a lone first row in its batch). They are in meshes already, not in occurrences; a consumer counting the block's occurrences model-wide adds them. Constant once the block has been shared.

    index_start: number
    indices: Uint32Array
    normals: Float32Array
    occurrences: SharedShapeOccurrence[]
    positions: Float32Array

    Y-up, relative to each occurrence's origin, unrotated.

    stream_wide: boolean

    Whether vertex_start / index_start name this block for the WHOLE model (a cross-batch stream or a single blob), so a consumer may join shapes of different batches by them. False for a stream batch decoded on its own, whose offsets restart per batch.

    vertex_start: number

    Where the block starts in the table set it was read from (vertex rows / indices).