diff --git a/src/kiri/slicer2.js b/src/kiri/slicer2.js index 3a3cd4f4..e2cc75a0 100644 --- a/src/kiri/slicer2.js +++ b/src/kiri/slicer2.js @@ -356,7 +356,8 @@ zmin = (opt.min || this.bounds.min.z) + boff, zmax = (opt.max || this.bounds.max.z) - toff, steps = (zmax - zmin) / step, - count = Math.floor(steps), + rem = steps % 1 != 0 ? 0 : 1, + count = Math.floor(steps) + rem, array = []; if (opt.fit) {