Expand description
3D Volumetric Bricks and Spatial Indexing for M64 Matter Containers.
Provides 3D Hilbert curve spatial addressing for macro-level chunk clustering
and 3D Morton (Z-order) bit-interleaving for intra-brick 16×16×16 (4,096-voxel)
cache locality in L1/L2 caches.
Constants§
- M64_
BRIC K3D_ BYTES - Total byte size of one 16×16×16 brick payload (256 KB = 262,144 bytes).
- M64_
BRIC K3D_ RECORDS - Total number of 64-byte records in one 16×16×16 brick (4,096 records).
- M64_
BRIC K3D_ SIDE - Side dimension of an M64 3D volumetric brick (16 voxels along each axis).
Functions§
- brick_
voxel_ coords - Computes local 3D coordinates
(lx, ly, lz)from an intra-brick linear index0..4096. - brick_
voxel_ linear_ index - Computes the linear 1D index
0..4096of a voxel inside a 16×16×16 brick. - decode_
hilbert3d_ u64 - Decode a 64-bit Hilbert index back to 3D brick coordinates
(bx, by, bz). - encode_
hilbert3d_ u64 - Encode 3D brick coordinates
(bx, by, bz)to a 64-bit Hilbert index.