@pmndrs/bvh
    Preparing search index...

    Function deserializeBoundsTree

    • Reads bytes from boundsTree.serialize() back into a tree for geometry, the geometry it was built from (three-mesh-bvh's MeshBVH.deserialize; the bytes are our layout, not three-mesh-bvh's format). Either triangle format: an indexed file gives an indexed tree, which reads its corners from the geometry's positions. Doesn't set geometry.boundsTree; setBoundsTree does.

      Parameters

      • bytes: ArrayBuffer | ArrayBufferView<ArrayBufferLike>
      • geometry: BufferGeometry
      • options: BvhBoundsTreeOptions = {}

      Returns BvhBoundsTree