Work with polyline contours