respect zBottom in topo4 / lathe
This commit is contained in:
parent
55ea6825eb
commit
6617f1889d
2 changed files with 4 additions and 3 deletions
|
|
@ -841,7 +841,7 @@ class OpLathe extends CamOp {
|
||||||
|
|
||||||
this.topo = await CAM.Topo4({
|
this.topo = await CAM.Topo4({
|
||||||
op,
|
op,
|
||||||
state: state,
|
state,
|
||||||
onupdate: (pct, msg) => {
|
onupdate: (pct, msg) => {
|
||||||
progress(pct, msg);
|
progress(pct, msg);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ class Topo4 {
|
||||||
console.log(widget.id, 'topo4 auto tolerance', resolution.round(4));
|
console.log(widget.id, 'topo4 auto tolerance', resolution.round(4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.zBottom = state.zBottom;
|
||||||
this.resolution = resolution;
|
this.resolution = resolution;
|
||||||
this.vertices = widget.getGeoVertices().toShared();
|
this.vertices = widget.getGeoVertices().toShared();
|
||||||
this.tool = tool.generateProfile(resolution).profile;
|
this.tool = tool.generateProfile(resolution).profile;
|
||||||
|
|
@ -188,7 +189,7 @@ class Topo4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
lathePath(slices, tool) {
|
lathePath(slices, tool) {
|
||||||
const { resolution, step } = this;
|
const { resolution, step, zBottom } = this;
|
||||||
|
|
||||||
const tlen = tool.length;
|
const tlen = tool.length;
|
||||||
const slen = slices.length;
|
const slen = slices.length;
|
||||||
|
|
@ -254,7 +255,7 @@ class Topo4 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
heights.push(rx, 0, mz);
|
heights.push(rx, 0, Math.max(zBottom, mz));
|
||||||
}
|
}
|
||||||
|
|
||||||
return heights;
|
return heights;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue