add process origin offsets

This commit is contained in:
Stewart Allen 2023-01-06 22:25:37 -05:00
commit b657f66770
5 changed files with 37 additions and 11 deletions

View file

@ -51,7 +51,7 @@ function platformUpdateOrigin(update_bounds = true) {
let origin = settings.origin = { x: 0, y: 0, z: 0 };
let center = MODE === MODES.FDM ? device.originCenter || device.bedRound :
MODE === MODES.SLA ? false :
MODE === MODES.CAM ? process.outputOriginCenter :
MODE === MODES.CAM ? process.camOriginCenter :
device.originCenter || process.outputOriginCenter;
if (MODE === MODES.CAM && process.camOriginTop) {
@ -79,6 +79,12 @@ function platformUpdateOrigin(update_bounds = true) {
origin.y = device.bedDepth / 2;
}
if (MODE === MODES.CAM) {
origin.x += process.camOriginOffX;
origin.y += process.camOriginOffY;
origin.z += process.camOriginOffZ;
}
if (isIndexed) {
origin.y = 0;
}