fix thin fill

This commit is contained in:
Stewart Allen 2021-12-30 14:42:05 -05:00
commit 1108940a54
2 changed files with 3 additions and 2 deletions

View file

@ -721,8 +721,8 @@
for (let poly of ctre.m_AllPolys) {
if (minlen || maxlen) {
let plen = clib.JS.PerimeterOfPath(poly.m_polygon, false, 1);
if (minlen && plen < minlen) return;
if (maxlen && plen > maxlen) return;
if (minlen && plen < minlen) continue;
if (maxlen && plen > maxlen) continue;
}
let p1 = BASE.pointFromClipper(poly.m_polygon[0], zpos);
let p2 = BASE.pointFromClipper(poly.m_polygon[1], zpos);

View file

@ -189,6 +189,7 @@
} else {
// frop top object passed back by slicePost()
let top = new Top(poly.poly);
top.thin_fill = poly.thin_fill.map(p => BASE.newPoint(p.x,p.y,p.z));
top.fill_lines = poly.fill_lines;
top.fill_off = poly.fill_off;
top.last = poly.last;