Here is an example I came up with to solve this problem.
click on the grid to add points. This is based on an old sketch which orders points around a circle. Replace the instances of ogrid.
which are the ordered points with grid., to get more complex shapes. The algorithm currently makes use of the atan2 which isnt necessarily efficient.
Ps i dont know how to create complex shapes with vertices yet so the fill effect is off, but the algorithm works.