Expand description
.10d Spatial-index section — BVH node array + kd-tree node array
serialized as a self-describing section (P3.7).
Layout:
[SpatialIndexMiniHeader: 32 bytes]
[bvh_nodes: B * 40 bytes (BvhNode)]
[bvh_prim_indices: B * 4 bytes]
[kd_nodes: K * 32 bytes (KdNode)]
[kd_point_indices: K * 4 bytes]All arrays are little-endian, 4-byte aligned. The section is deterministic: identical input yields byte-identical output. Per-section CRC-32C is handled by the container’s section-table encoder.
Structs§
- Decoded
Spatial Index - Decoded spatial-index section.
- Spatial
Index Mini Header - The 32-byte SpatialIndex-section mini-header.
Enums§
- Spatial
Index Section Error - Spatial-index-section encode/decode error.
Constants§
- MAX_
BVH_ NODE_ COUNT - Maximum node count (bounded by 42MB Sentinel).
- MAX_
KD_ NODE_ COUNT - SPATIAL_
INDEX_ MINI_ HEADER_ SIZE - Mini-header size in bytes.
Functions§
- decode_
spatial_ index_ section - Decode a spatial-index section from a raw payload.
- encode_
spatial_ index_ section - Encode a spatial-index section from BVH and kd-tree node arrays.
- encoded_
len - Compute the encoded byte length for a spatial-index section.