← All Features

2-opt Travel Optimization

Smarter travel paths mean faster prints. preFlight uses advanced algorithms to minimize non-printing moves.

Centroid-Based Starting Position

Instead of starting travel optimization from an arbitrary point, preFlight calculates the centroid of each region and uses it as the starting position. This provides a better foundation for the optimization algorithm to work from.

2-opt Optimization Algorithm

The 2-opt algorithm iteratively improves travel paths by swapping segments until no further improvement can be found. This is the same class of algorithm used to solve traveling salesman problems, applied here to minimize wasted movement between extrusions.

Region-Aware Infill Ordering

preFlight doesn't just optimize travel between perimeters. It applies region-aware ordering to infill as well, reducing travel distance by 30-50% compared to naive ordering. Less travel means faster prints and fewer stringing artifacts.