Polygon operations

This is a Java application for performing some polygon operations. Currently, only the union, the difference, and the intersection of polygons is implemented. The polygon operation can be selected by clicking the operation button.

The applet provides two preset polygons and computes their union. You can drag the red polygon to see the algorithm in action.

To modify the polygons, first click the corresponding applet button on the top. After this, clicking the left mouse button adds a point to the corresponding polygon. Close the polygon by clicking the right mouse button. The polygons must be not self-intersecting.