@pmndrs/bvh
    Preparing search index...

    Function writeIndexedMeshHeader

    • Writes an unmerged indexed mesh's header (its vertex base, and with codes the material table's distance) and its material table (codes: each original triangle's material code, by original index) into words (4 per 16-byte unit), the mesh's first triangle at unit triangleOffset. The region must be indexedLeadingUnits(n, 0, codes !== null) units.

      Parameters

      • words: Uint32Array
      • triangleOffset: number
      • vertexBase: number
      • codes: Uint16Array<ArrayBufferLike> | null

      Returns void