triangulates a list of shape2d polygons