...And the Travelling Salesman arrives at GCodeClean v1.3.0

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 cleaned 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.

  1. Call each tool change a new ‘sequence’.
  2. 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.

4 Likes