Plain-object representation of a MeshBVH produced by MeshBVH.serialize and
consumed by MeshBVH.deserialize. Suitable for transfer across WebWorker boundaries
or storage, with optional buffer sharing via SharedArrayBuffer.
type SerializedBVH = {
roots: Array<ArrayBuffer>,
index: Int32Array | Uint32Array | Uint16Array | null,
indirectBuffer: Uint32Array | Uint16Array | null
}On this page
Properties
roots: Array<ArrayBuffer>
BVH root node buffers.
index: Int32Array | Uint32Array | Uint16Array | null
Serialized geometry index buffer.
indirectBuffer: Uint32Array | Uint16Array | null
Indirect primitive index buffer, or null
if the BVH was not built in indirect mode.