Constructing a simple polygon

This applet constructs a simple (non-self-intersecting) polygon for a set of points. The bold point indicates the origin of the method. Click the left mouse button to enter a new point to the set. A polygon will be computed after entering 3 different points. Click the right mouse button to start over.

Source code