IFClite TypeScript API
    Preparing search index...

    Function buildSpatialIndexAsync

    • Time-sliced version of buildSpatialIndex. Computes mesh bounds in chunks, yielding to the event loop between chunks so orbit/pan stays responsive during index construction.

      Parameters

      • meshes: MeshData[]

        All mesh data

      • OptionalbudgetMs: number

        Max ms per chunk (finite and non-negative; default 4 — quarter of a 60fps frame)

      Returns Promise<BVH>

      Promise that resolves to the BVH