In a voxel grid the position can be uniquely determined for a particle by an integer ID. For example pos (x,y,z) in a grid with dimensions l, w, h can encoded as
ID = x + l * (y + w * z)
.
In a voxel grid the position can be uniquely determined for a particle by an integer ID. For example pos (x,y,z) in a grid with dimensions l, w, h can encoded as
ID = x + l * (y + w * z)
.