@pmndrs/bvh
    Preparing search index...

    Function getJSONStructure

    • three-mesh-bvh's getJSONStructure(bvh) (debug/Debug.js, 0.9.18): the tree as plain objects, each with bounds and either count and offset (a leaf; tree positions, as CpuMeshBvh.traverse reports them) or left and right. Built the way three-mesh-bvh builds it, over the same node walk (CpuMeshBvh.traverseNodes, the root at depth 0 with the tree's bounds). makeBox turns [minX, minY, minZ, maxX, maxY, maxZ] into a box: a BvhBox3 here, a three Box3 in @pmndrs/bvh/three.

      Type Parameters

      Parameters

      • tree: CpuMeshBvh<unknown>
      • OptionalmakeBox: (box: Float32Array) => Box

      Returns BvhJsonNode<Box>