fix lathe preview lerp, gpu lathe end point, and index issues
This commit is contained in:
parent
a32b7063a0
commit
ad86c38d97
5 changed files with 37 additions and 48 deletions
|
|
@ -25,12 +25,11 @@ export class OpIndex extends CamOp {
|
|||
}
|
||||
|
||||
prepare(ops, progress) {
|
||||
let { zmax, zsafe, camOut, printPoint } = ops;
|
||||
let { camOut, printPoint, zSafe } = ops;
|
||||
// max point of stock corner radius when rotating (safe z when indexing)
|
||||
let ztop = Math.max(zsafe, zmax);
|
||||
// move above rotating stock
|
||||
camOut(printPoint = printPoint.clone().setZ(ztop), 0);
|
||||
camOut(printPoint = printPoint.clone().setZ(zSafe), 0);
|
||||
// issue rotation command
|
||||
camOut(printPoint = printPoint.clone().setZ(ztop).setA(this.degrees), 0);
|
||||
camOut(printPoint = printPoint.clone().setZ(zSafe).setA(this.degrees), 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue