I have an algorithm which generates from three to six points of intersection between a plane and the edges of a cube which contains that plane. For drawing the plane (which gets drawn a polygon) OpenGL needs the vertex to be ordered as in the following picture:
If the vertex are unordered, this result may be drawn:
Edit: I found this question but I don't know how to code it in Python and that's not exactly what I need