fix unmarked fill point bug

This commit is contained in:
Stewart Allen 2018-02-13 14:46:37 -05:00
commit 975fe5cacc
4 changed files with 9 additions and 8 deletions

View file

@ -661,6 +661,7 @@ var gs_base_polygons = exports;
rayint.push(line[0]);
rayint.push(line[1]);
})
return rayint;
}

View file

@ -624,6 +624,12 @@ var gs_kiri_print = exports;
}
skip = false;
// mark as used (temporarily)
p1.del = true;
p2.del = true;
marked += 2;
lastIndex = p1.index;
// if dist to new segment is less than thinWall
// and segment length is less than thinWall then
// just extrude to midpoint of next segment. this is
@ -652,13 +658,7 @@ var gs_kiri_print = exports;
addOutput(preout, p2, fillMult, fillSpeed);
}
// mark as used (temporarily)
p1.del = true;
p2.del = true;
lastIndex = p1.index;
startPoint = p2;
marked += 2;
}
// clear delete marks so we can re-print later

View file

@ -837,8 +837,8 @@ var gs_kiri_slice = exports;
top.fill_lines_ang.poly.push(af.clone());
});
}
});
});
return true;
};

View file

@ -1,7 +1,7 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
VERSION:"1.0.96"
VERSION:"1.0.97"
};
if (!module) var module = {};
module.exports = exports;