And now we’re at v1.3.3 - with improved ‘depth of cut’-aware merge
Release Improved merge
, now ‘depth of cut’ aware · md8n/GCodeClean (github.com)
Note that this is a ‘breaking change’, previously clean
ed files will not feed into the new split
command. Redo each file starting with clean
to work around this.
So, after rummaging around a variety of tests looking for an ‘optimal’ solution (sorta like what I suggested above) it turned out to be.
- Call each tool change a new ‘sequence’.
- Take the total range of cutting depths, divide these into 10 ranges (arbitrary, but seems good enough), and assign each cutting path to one of those ranges depending on its maximum cutting depth, and call this a ‘sub-sequence’ (close to @TimS suggestion).
When it comes time to merge, each ‘sequence’:‘sub-sequence’ is processed in order, and the resulting ‘merges’ are simply concatenated together into the final file.