fix top sparse fill
This commit is contained in:
parent
963ea926f8
commit
71a82f4a3a
3 changed files with 7 additions and 5 deletions
|
|
@ -740,7 +740,9 @@ var gs_kiri_print = exports;
|
||||||
});
|
});
|
||||||
|
|
||||||
// perform last wipe on top layer at end of run
|
// perform last wipe on top layer at end of run
|
||||||
if (wipeAfter && wipe) outputWipe(wipe);
|
if (wipeAfter && wipe) {
|
||||||
|
outputWipe(wipe);
|
||||||
|
}
|
||||||
|
|
||||||
// offset print points
|
// offset print points
|
||||||
for (i=0; i<preout.length; i++) {
|
for (i=0; i<preout.length; i++) {
|
||||||
|
|
|
||||||
|
|
@ -637,10 +637,10 @@ var gs_kiri_slice = exports;
|
||||||
ctre.m_AllPolys.forEach(function(node) {
|
ctre.m_AllPolys.forEach(function(node) {
|
||||||
poly = POLY.fromClipperNode(node, scope.z);
|
poly = POLY.fromClipperNode(node, scope.z);
|
||||||
tops.forEach(function(top) {
|
tops.forEach(function(top) {
|
||||||
// filter out polygons under min length (0.5mm)
|
// use only polygons inside the top
|
||||||
// if (poly.isInside(top.poly) && poly.perimeter() > 0.5) {
|
if (poly.isInside(top.poly)) {
|
||||||
top.fill_sparse.push(poly);
|
top.fill_sparse.push(poly);
|
||||||
// }
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var exports = {
|
var exports = {
|
||||||
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
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.",
|
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
||||||
VERSION:"1.0.82"
|
VERSION:"1.0.83"
|
||||||
};
|
};
|
||||||
if (!module) var module = {};
|
if (!module) var module = {};
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue