remove legacy cam slice options from fdm slicer. fix sla export

This commit is contained in:
Stewart Allen 2021-06-20 18:38:31 -04:00
commit 24546c8735
4 changed files with 30 additions and 105 deletions

View file

@ -439,7 +439,6 @@
sliceFillAngle += 90.0;
}, "fill solids");
if (promises) {
console.log({fill_awaiting: promises.length});
await Promise.all(promises);
}
}
@ -470,7 +469,6 @@
lastType = newType;
}, "infill");
if (promises) {
console.log({infill_awaiting: promises.length});
await Promise.all(promises);
}
} else if (isSynth) {

View file

@ -485,12 +485,11 @@
function scaleMovePoly(poly) {
let points = poly.points;
let bounds = poly.bounds = BASE.newBounds();
poly._bounds = undefined;
for (let i=0, il=points.length; i<il; i++) {
let p = points[i];
p.y = height - (p.y * scaleY + height2);
p.x = p.x * scaleX + width2;
bounds.update(p);
}
if (poly.inner) {
for (let i=0, ia=poly.inner, il=poly.inner.length; i<il; i++) {