Indexing lattice nodes based on distance to lattice center

58 Views Asked by At

Let's say there is a uniform 3D lattice of length S, where S is an odd number, and the lattice is centered at the origin. Each node has an index, but the twist is that each increment of the index must point to the node that has >= distance to the origin from the previous index.