add linear infill

This commit is contained in:
Stewart Allen 2020-04-15 22:19:18 -04:00
commit 453348af4b
3 changed files with 32 additions and 3 deletions

View file

@ -709,9 +709,10 @@ let gs_kiri_slice = exports;
scope._fill_finger = POLY.fingerprint(polys);
let skippable = type !== 'gyroid' && type !== 'linear';
let miss = false;
// if the layer below has the same fingerprint, we may be able to clone its infill
if (scope.fingerprintSame(down)) {
if (skippable && scope.fingerprintSame(down)) {
// the fill fingerprint can slightly different because of solid projections
if (down._fill_finger && POLY.fingerprintCompare(scope._fill_finger, down._fill_finger)) {
for (let i=0; i<tops.length; i++) {