use sparse fill strategy to connect polish lines

This commit is contained in:
Stewart Allen 2020-03-04 21:52:59 -05:00
commit a3487f96a8
2 changed files with 17 additions and 17 deletions

View file

@ -181,19 +181,19 @@ var gs_kiri_fdm = exports;
// console.log({polish_update});
});
// compute y polishing slices
// SLICER.sliceWidget(widget, {
// height: sdev.nozzleSize,
// swapX: false,
// swapY: true,
// simple: true
// }, (polish_done => {
// widget.polish.y = polish_done
// .filter(s => s.groups.length)
// .map(s => s.groups)
// .forEach(p => pa.appendAll(p));
// }), (polish_update) => {
// // console.log({polish_update});
// });
SLICER.sliceWidget(widget, {
height: sdev.nozzleSize,
swapX: false,
swapY: true,
simple: true
}, (polish_done => {
widget.polish.y = polish_done
.filter(s => s.groups.length)
.map(s => s.groups)
.forEach(p => pa.appendAll(p));
}), (polish_update) => {
// console.log({polish_update});
});
// apply polishing finishes to layers
forSlices(1.0, 1.0, slice => {
if (slice.index >= polish) {