remake Contour::toSegments() to convenient for list operation splice