Creates a copy of this Polyline2d object. The result is entirely independent and can be edited without affecting the original Polyline2d object.