re-fix slice on flat for fdm

This commit is contained in:
Stewart Allen 2020-04-20 08:48:08 -04:00
commit 8a51753e1b

View file

@ -443,11 +443,13 @@ let gs_kiri_slicer = exports;
if (onflat) { if (onflat) {
// annotate slices with cam flats for finishing waterlines // annotate slices with cam flats for finishing waterlines
if (options.cam) slice.hasFlats = true; if (options.cam) {
slice.hasFlats = true;
// since default onflat pushes Z down by 0.001 and in cam // since default onflat pushes Z down by 0.001 and in cam
// mode we want the opposite, overcompsate above the Z // mode we want the opposite, overcompsate above the Z
z += 0.002; z += 0.002;
} }
}
// iterate over matching buckets for this z offset // iterate over matching buckets for this z offset
for (let i = 0; i < bucket.length;) { for (let i = 0; i < bucket.length;) {