An addon for openframeworks that lets you do boolean operations on polygons (contours). it use ofPath only but there is a easy way to exchange ofPath and ofPolyline
It does this by wrapping the clipper library (http://www.angusj.com/delphi/clipper.php)