triangulates a series of 2D contours