fix pocket + contour ... topo field was commented out
This commit is contained in:
parent
72960794a2
commit
ca83824f00
2 changed files with 5 additions and 4 deletions
|
|
@ -1270,7 +1270,7 @@ class OpPocket extends CamOp {
|
|||
conform(camLines, refine, engrave, progress) {
|
||||
const topo = this.topo;
|
||||
// re-segment polygon to a higher resolution
|
||||
const hirez = refine > 0 ? camLines.map(p => p.segment(topo.tolerance * 2)) : camLines;
|
||||
const hirez = camLines.map(p => p.segment(topo.tolerance * 2));
|
||||
// walk points and offset from surface taking into account tool geometry
|
||||
let steps = hirez.length;
|
||||
let iter = 0;
|
||||
|
|
|
|||
|
|
@ -99,7 +99,8 @@ class Topo {
|
|||
}
|
||||
|
||||
// console.log({ resolution, flatness });
|
||||
// this.tolerance = resolution;
|
||||
// used by Pocket -> Contour
|
||||
this.tolerance = resolution;
|
||||
|
||||
if (tabs) {
|
||||
clipTab.appendAll(tabs.map(tab => {
|
||||
|
|
@ -437,7 +438,7 @@ class Probe {
|
|||
constructor(params) {
|
||||
|
||||
const { data, profile } = params;
|
||||
const { stepsX, stepsY, boundsX, boundsY, zMin, minX, minY } = params;
|
||||
const { stepsX, stepsY, boundsX, zMin, minX, minY } = params;
|
||||
|
||||
this.params = params;
|
||||
|
||||
|
|
@ -448,7 +449,7 @@ class Probe {
|
|||
xl = sx - 1,
|
||||
yl = sy - 1;
|
||||
|
||||
let tx, ty, tz, gv, i = 0, mz = -1;
|
||||
let gv, i = 0, mz = -1;
|
||||
|
||||
while (i < profile.length) {
|
||||
// tool profile point x, y, and z offsets
|
||||
|
|
|
|||
Loading…
Reference in a new issue