generating regular lattices positions