fix bottom/last pass for rough and outline ops (zBottom, slicer up errors)
This commit is contained in:
parent
2eab49447c
commit
5193e22379
2 changed files with 4 additions and 4 deletions
|
|
@ -227,7 +227,7 @@ class OpRough extends CamOp {
|
||||||
let shadow = [];
|
let shadow = [];
|
||||||
let slices = [];
|
let slices = [];
|
||||||
let indices = slicer.interval(roughDown, {
|
let indices = slicer.interval(roughDown, {
|
||||||
down: true, min: zBottom, fit: true, off: 0.01
|
down: true, min: 0, fit: true, off: 0.01
|
||||||
});
|
});
|
||||||
// shift out first (top-most) slice
|
// shift out first (top-most) slice
|
||||||
indices.shift();
|
indices.shift();
|
||||||
|
|
@ -510,7 +510,7 @@ class OpOutline extends CamOp {
|
||||||
let shadow = [];
|
let shadow = [];
|
||||||
let slices = [];
|
let slices = [];
|
||||||
let intopt = {
|
let intopt = {
|
||||||
down: true, min: zBottom, fit: true, off: 0.01,
|
down: true, min: 0, fit: true, off: 0.01,
|
||||||
max: op.top ? zMax + ztOff : undefined
|
max: op.top ? zMax + ztOff : undefined
|
||||||
};
|
};
|
||||||
let indices = slicer.interval(op.down, intopt);
|
let indices = slicer.interval(op.down, intopt);
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ class Slicer {
|
||||||
|
|
||||||
const promises = []
|
const promises = []
|
||||||
for (let bucket of buckets) {
|
for (let bucket of buckets) {
|
||||||
promises.push(sliceFn(bucket, opt, slice => {
|
promises.push(sliceFn(bucket, { ...opt, minZ: this.bounds.min.z }, slice => {
|
||||||
track.count++;
|
track.count++;
|
||||||
if (opt.progress) {
|
if (opt.progress) {
|
||||||
opt.progress(track.count, track.total);
|
opt.progress(track.count, track.total);
|
||||||
|
|
@ -281,7 +281,7 @@ class Slicer {
|
||||||
let links = opt.links !== false,
|
let links = opt.links !== false,
|
||||||
dedup = opt.dedup !== false,
|
dedup = opt.dedup !== false,
|
||||||
edges = opt.edges || false,
|
edges = opt.edges || false,
|
||||||
over = opt.over || false,
|
over = opt.over || z <= opt.minZ,
|
||||||
debug = opt.debug,
|
debug = opt.debug,
|
||||||
phash = {},
|
phash = {},
|
||||||
lines = [];
|
lines = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue