close

Closes the path of the ShapeContour.

The path is closed by creating a new connecting Segment2D between the first and last Segment2D in the contour. If the distance between the beginning of the first and the finish of the last point is negligible (<0.001), then no new Segment2Ds are added.