Husky,
Andrew's answer was basically the same as here:
https://www.qcad.org/rsforum/viewtopic. ... 867#p30867
I assume that a certain TSP algorithm is implemented to reduce the traveled G0 paths.
https://en.wikipedia.org/wiki/Travellin ... an_problem
With closed sub-paths it is a typical TSP but CNC can also include open paths.
Using in/out leads that already can be open cutter paths.
For a 146 point problem there might be several minimal solutions and many near minimal.
The outcome will then depend on the used algorithm and possibly on the seed.
In most basic cases there is only one.
One can fool this a bit with grouping things.
Then again, it could turn out less optimized in a minor to major degree.
I would also like to compare it with the outcome of nesting shapes.
Another advice is to position the start point of a closed contour on a long and steady side.
Some CAM automatically choose the mid point of the longest (near) straight edge.
Or that of the inner cutter path while pocketing.
In QCAD one needs to define it as a polyline with a certain start-end point.
The chosen point will have an influence on the sequence.
From writing scripts that handle a selection, I know that the order of selected things is not very predictable.
I assume there will be some logic, but it still eludes me.
The drawing order can also be renumbered 0...NNN when saving a file.
e.g. Open a file, select 10 entities, MB, all 10 have order -1, save & close, re-open ...
The new drawing order of those 10 is 0-9 and correlates with their handles, the rest is shifted.
From a selection QCAM generates individual cutting path segments, each having a handle and a drawing order.
I can understand your request that is similar as in the first link.
The question remains what to use as path sequence.
There is no selection order, the drawing order is uncertain, that of a contour can be a mix, a handle is fixed on creation.
Regards,
CVH