Implement the base loop for optimizing paths
Implement the base loop for optimizing paths

We'll create a shadow vector and swap it at the end.

Contributes to issue CURA-7558.

Ultimaker/CuraEngine,Ultimaker/CuraEngine