Copy from http://sourceforge.net/projects/polyclipping/files/ to play with.