I am trying to create a simple (with no self-intersections) polygon having four given points as vertices, for example to calculate its perimeter later. However, it seems there is nothing for this basic functionality. For instance, I would like to create a square given the following sequence of four points (irrespective to their order) in the following example, but I cannot "force" the software to create a simple polygon:
Polygon[{{0,0},{1,1},{1,0},{0,1}}]
I would like that the software to "arrange" the sequence of points to create a simple polygon, that is, in this specific case, a square (WindingPolygon does not work for this purpose).
CirclePoints
as well to generate the vertices of a regular polygon. $\endgroup$