Here is a simple solution...
Begin with any three points to form a triangle. Add each additional point to the polygon with the following operation:
Divide the edges into two continuous paths, where in one path the line of each edge separates the point to be added from the rest of the polygon (let's call this the "separating path") and in the other path, the line of each edge has the point on the same side as the polygon.
(Note: as long as your shape remains convex, which it must, these two paths will be continuous and form the entire shape)
If the separating path has no edges, the point is inside the polygon and should be ignored, otherwise, remove the separating path from the polygon. Replace it with two segments, connecting each endpoint of the separating path to the new point.
Ta-da! :)