Merge branch 'master' of github.com:GridSpace/grid-apps

This commit is contained in:
stewart allen 2021-04-13 17:53:25 -04:00
commit fae69bbf81
5 changed files with 26 additions and 11 deletions

View file

@ -413,7 +413,7 @@
// output seek to start point between mesh slices if previous data
printPoint = print.slicePrintPath(
slice,
slice.belt && slice.belt.touch ? newPoint(-wtb.w, wtb.d * 2, 0) : printPoint.sub(offset),
slice.belt && slice.belt.touch ? newPoint(-5000, 0, 0) : printPoint.sub(offset),
offset,
layerout,
{

View file

@ -339,7 +339,7 @@
maxx = Math.max(maxx, poly.bounds.maxx);
}
}
if (Math.abs(slice.belt.miny - smin) < 0.001) {
if (Math.abs(slice.belt.miny - smin) < 0.01) {
slice.belt.touch = true;
if (!start) start = slice;
}
@ -350,6 +350,12 @@
while (start.up && start.topShells().length === 0) {
start = start.up;
}
// if a brim applies, add that width to anchor
let brim = getRangeParameters(settings, 0).firstLayerBrim || 0;
if (brim) {
minx -= brim;
maxx += brim;
}
while (offset && start && offset >= sliceHeight) {
let addto = start.down;
if (!addto) {
@ -478,7 +484,7 @@
if (top.shells) output
.setLayer("shells", isSynth ? COLOR.support : COLOR.shell)
.addPolys(top.shells, vopt({ offset, height }));
.addPolys(top.shells, vopt({ offset, height, clean: true }));
if (top.gaps) output
.setLayer("gaps", COLOR.gaps)