fix top sparse fill

This commit is contained in:
Stewart Allen 2018-01-11 13:28:23 -05:00
commit 71a82f4a3a
3 changed files with 7 additions and 5 deletions

View file

@ -637,10 +637,10 @@ var gs_kiri_slice = exports;
ctre.m_AllPolys.forEach(function(node) {
poly = POLY.fromClipperNode(node, scope.z);
tops.forEach(function(top) {
// filter out polygons under min length (0.5mm)
// if (poly.isInside(top.poly) && poly.perimeter() > 0.5) {
// use only polygons inside the top
if (poly.isInside(top.poly)) {
top.fill_sparse.push(poly);
// }
}
});
});
}