@pmndrs/bvh
    Preparing search index...

    Interface CpuMeshBvhBuildOptions

    interface CpuMeshBvhBuildOptions {
        corners?: CpuMeshBvhCorners;
        maxLeafPrimitives?: number;
        onProgress?: (progress: number) => void;
    }
    Index

    As CpuMeshBvhOptions.corners. 'positions' builds indexed triangles directly (tinybvh writes them). Default 'records'.

    maxLeafPrimitives?: number

    Leaves with more triangles than this are cut in half until they fit. 1 to 8; default 8.

    onProgress?: (progress: number) => void

    Called with 0 before the build and 1 after it. tinybvh builds in one call into WebAssembly and reports nothing in between.