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.
three-mesh-bvh's
getJSONStructure(bvh)(debug/Debug.js, 0.9.18): the tree as plain objects, each withboundsand eithercountandoffset(a leaf; tree positions, asCpuMeshBvh.traversereports them) orleftandright. 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).makeBoxturns[minX, minY, minZ, maxX, maxY, maxZ]into a box: a BvhBox3 here, a threeBox3in@pmndrs/bvh/three.