Homesplat-transform API Reference - v3.0.0
    Preparing search index...

    Function stackLods

    • Stack N single-LOD sources into one structural multi-LOD source: output LOD i is sources[i]. read dispatches by request.lod to the matching source (read at its own LOD 0). numGaussians is LOD 0's count; lodCounts[i] is sources[i]'s gaussian count.

      This is how per-detail-level inputs become one structural scene for the LOD writer — multi-PLY --tag-lod tags (one source per tagged level) or a DataTable split by its lod column — replacing the old per-gaussian lod tag array. LOD is a structural axis here; no source carries a per-gaussian LOD tag.

      All inputs must share layout (chunk size, SH bands, layers, extras, transform) and be single-LOD; the stacked metadata is inherited from sources[0].

      Parameters

      • sources: ChunkSource[]

        The per-LOD single-LOD sources, in output-LOD order.

      Returns ChunkSource

      A multi-LOD source dispatching by LOD to the inputs.