basic boolean operation on non-curved polygons