Say there is a 2D plane (square) with some points inside it.
How to move all the points in such a way that they fill the plane as evenly as possible but every point maintains its neighbors?
In other words, I want the points to be as far from each other as possible but their locality (topology) should be preserved and they should lay in the square.
In other words, I want to kind of zoom-in in the rich-point-populated area and zoom out in the empty areas.
PS: is there a general solution for higher-dimension spaces? Is there a direct solution or only iterative one?