optimize belt print starting points
This commit is contained in:
parent
d375baca0f
commit
26de2710bd
2 changed files with 14 additions and 4 deletions
|
|
@ -371,10 +371,11 @@
|
|||
printPoint = purge(slice.extruder, track, layerout, printPoint, slice.z);
|
||||
}
|
||||
let tmpout = [];
|
||||
let wtb = slice.widget.track.box;
|
||||
// output seek to start point between mesh slices if previous data
|
||||
printPoint = print.slicePrintPath(
|
||||
slice,
|
||||
printPoint.sub(offset),
|
||||
isBelt ? newPoint(-wtb.w, wtb.d * 2, 0) : printPoint.sub(offset),
|
||||
offset,
|
||||
tmpout, //layerout,
|
||||
{
|
||||
|
|
@ -408,10 +409,11 @@
|
|||
let y = maxy;
|
||||
let z = minz;
|
||||
let b = Math.max(firstLayerBrim, 1);
|
||||
print.addOutput(layerout, newPoint(minx - b, y, z), 0, firstLayerSeek, tool);
|
||||
print.addOutput(layerout, newPoint(minx - 0, y, z), emit, firstLayerRate, tool);
|
||||
print.addOutput(layerout, newPoint(maxx + b, y, z), 0, firstLayerSeek, tool);
|
||||
print.addOutput(layerout, newPoint(maxx + 0, y, z), emit, firstLayerRate, tool);
|
||||
print.addOutput(layerout, newPoint(minx - b, y, z), 0, firstLayerSeek, tool);
|
||||
print.addOutput(layerout, newPoint(minx - 0, y, z), emit, firstLayerRate, tool);
|
||||
// print.addOutput(layerout, newPoint(minx - 0, y, z + 5), 0, firstLayerRate, tool);
|
||||
}
|
||||
}
|
||||
layerout.appendAll(tmpout);
|
||||
|
|
|
|||
Loading…
Reference in a new issue