zBottom updates specific to A axis indexing

This commit is contained in:
Stewart Allen 2022-11-05 12:12:51 -04:00
commit 1369edb8f3
4 changed files with 7 additions and 5 deletions

View file

@ -357,7 +357,7 @@ class Slicer {
bounds = this.bounds,
boff = opt.boff || opt.off || 0, // bottom offset
toff = opt.toff || opt.off || 0, // top offset
zmin = (opt.min || this.bounds.min.z) + boff,
zmin = opt.min !== undefined ? opt.min : this.bounds.min.z + boff,
zmax = (opt.max || this.bounds.max.z) - toff,
steps = (zmax - zmin) / step,
rem = steps % 1 != 0 ? 0 : 1,