more efficient shortest-distance pocket routing

This commit is contained in:
Stewart Allen 2024-08-17 17:57:03 -04:00
commit f08319efe7
3 changed files with 40 additions and 9 deletions

View file

@ -437,6 +437,12 @@ function prepEach(widget, settings, print, firstPoint, update) {
);
}
/**
* output an array of slices that form a pocket
*
* @param {Slice[]} top-down Z stack of slices
* @param {*} opts
*/
function sliceOutput(sliceOut, opts = {}) {
const { cutdir, depthFirst, easeDown, progress } = opts;
@ -518,6 +524,7 @@ function prepEach(widget, settings, print, firstPoint, update) {
setTolerance,
setPrintPoint,
setLasering,
getPrintPoint() { return printPoint },
printPoint,
newLayer,
addGCode,