fix lathe preview lerp, gpu lathe end point, and index issues

This commit is contained in:
Stewart Allen 2025-12-09 00:21:26 -05:00
commit ad86c38d97
5 changed files with 37 additions and 48 deletions

View file

@ -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);
}
}