IFClite TypeScript API
    Preparing search index...

    Class CompactBatch

    One batch's compact records, returned by [MeshCollection::encode_compact]. Every getter copies its column into a new typed array.

    Index
    anchors: Float64Array

    Three f64 per encoded mesh: its first source vertex in the collection's frame (origin + position, computed as the renderer's chunkCellKey computes it). Records hold that vertex only to within half a step, which can put a mesh on the other side of a spatial chunk plane than the f32 load files it.

    bounds: Float64Array

    Six f64 per encoded mesh: its AABB in the collection's frame (Y-up, RTC-relative origin + position), min x, y, z then max x, y, z.

    cells: Int32Array

    Three i32 per encoded mesh: its cell indices at its level.

    indices: Uint16Array

    Mesh-local u16 triangle indices.

    lodNormals: Float32Array

    Lexicographically first referenced authored corner normal per welded vertex.

    meshCount: number

    Number of encoded meshes (table rows).

    normalModes: boolean

    Records in [RECORD_FORMAT]: always true. An older build has no such getter; its records hold welded normal sums.

    records: Uint8Array

    12 bytes per welded vertex: u16 x, y, z offsets, u16 oct normal (low bit: orientation mode), u32 entity lane.

    refusals: Uint32Array

    Meshes left on the f32 path, by reason: textured, empty, non-finite, id range, extent, welded vertices, collapse, normals, index range.

    table: Uint32Array

    Seven u32 per encoded mesh: mesh index in the collection, vertex start, vertex count, index start, index count, lattice level (step = 2^-level m), source vertex count (before welding).

    totals: Float64Array

    [inVertices, inTriangles, outVertices, outTriangles] over the encoded meshes.

    windows: Float64Array

    Three f64 per encoded mesh: its window origin in units of its level's step.

    • Returns void

    • Returns void