IFClite TypeScript API
    Preparing search index...

    Interface CompactPayload

    One wasm batch call's compact output, as transferred.

    interface CompactPayload {
        anchors?: Float64Array<ArrayBufferLike>;
        bounds: Float64Array;
        cells: Int32Array;
        indices: Uint16Array;
        lodNormals?: Float32Array<ArrayBufferLike>;
        normalModes?: true;
        records: Uint8Array;
        table: Uint32Array;
        windows: Float64Array;
    }
    Index
    anchors?: Float64Array<ArrayBufferLike>

    Per row: the first source vertex (origin + position, f64), where the f32 load takes a mesh's spatial chunk. Absent from a wasm build that predates it: consumers then take the first record, within half a step of it.

    bounds: Float64Array

    Per row: box in the mesh frame (origin + position, Y-up), min xyz then max xyz.

    cells: Int32Array

    Per row: cell indices xyz at the row's level.

    indices: Uint16Array

    Mesh-local u16 triangle indices.

    lodNormals?: Float32Array<ArrayBufferLike>

    Smallest authored corner normal per welded vertex, in source f32 comparison order.

    normalModes?: true

    The records' oct normals are authored corner codes whose low bit is the orientation mode (COMPACT_FLAT_NORMAL_BIT), and each triangle's first index is the vertex that leads it. Absent from a wasm build that predates it: its records hold each welded vertex's normal SUM, read interpolated.

    records: Uint8Array

    12 bytes per welded vertex: u16 x, y, z offsets, u16 oct normal, u32 entity lane.

    table: Uint32Array

    Per row (COMPACT_TABLE_STRIDE columns): mesh index in its collection, vertex start, vertex count, index start, index count, lattice level (step = 2^-level m), source vertex count.

    windows: Float64Array

    Per row: lattice window origin in units of the row's step, xyz.