I want to find a good way to create a polygon from random points.
All the points should be used in the polygon, and so each point would have two neighbors connected by two edges. No edge should cross another.
Here is an example of an acceptable result:
Here is an example of what would not be acceptable, because there are edges that cross each other:
Is there an algorithm for this?