Optimise closest start point for individual polylines
Optimise closest start point for individual polylines

The order of the polylines is monotonic, but the direction of them will be optimised such that they print with minimal travel moves.
This won't work properly for actual polylines such as the zigzag pattern. For those we'll have to find an alternative solution.

Contributes to issue CURA-7928.

Ultimaker/CuraEngine,Ultimaker/CuraEngine