Find the points objects should occupy in an n-dimensional array