Expands [minX, minY, minZ, maxX, maxY, maxZ] outwards so every bound
lies on a multiple of size. This keeps the complete source volume inside
the grid and gives adjacent voxel or root cells exact shared boundaries.
Parameters
bounds: Float64Array
The world-space AABB to align, as [minX, minY, minZ, maxX, maxY, maxZ].
size: number
The voxel size each bound is aligned to.
Returns Float64Array
The aligned AABB, in the same [minX, minY, minZ, maxX, maxY, maxZ] layout.
Expands
[minX, minY, minZ, maxX, maxY, maxZ]outwards so every bound lies on a multiple ofsize. This keeps the complete source volume inside the grid and gives adjacent voxel or root cells exact shared boundaries.