fix thin fill
This commit is contained in:
parent
b5291cf7f2
commit
1108940a54
2 changed files with 3 additions and 2 deletions
|
|
@ -721,8 +721,8 @@
|
||||||
for (let poly of ctre.m_AllPolys) {
|
for (let poly of ctre.m_AllPolys) {
|
||||||
if (minlen || maxlen) {
|
if (minlen || maxlen) {
|
||||||
let plen = clib.JS.PerimeterOfPath(poly.m_polygon, false, 1);
|
let plen = clib.JS.PerimeterOfPath(poly.m_polygon, false, 1);
|
||||||
if (minlen && plen < minlen) return;
|
if (minlen && plen < minlen) continue;
|
||||||
if (maxlen && plen > maxlen) return;
|
if (maxlen && plen > maxlen) continue;
|
||||||
}
|
}
|
||||||
let p1 = BASE.pointFromClipper(poly.m_polygon[0], zpos);
|
let p1 = BASE.pointFromClipper(poly.m_polygon[0], zpos);
|
||||||
let p2 = BASE.pointFromClipper(poly.m_polygon[1], zpos);
|
let p2 = BASE.pointFromClipper(poly.m_polygon[1], zpos);
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,7 @@
|
||||||
} else {
|
} else {
|
||||||
// frop top object passed back by slicePost()
|
// frop top object passed back by slicePost()
|
||||||
let top = new Top(poly.poly);
|
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_lines = poly.fill_lines;
|
||||||
top.fill_off = poly.fill_off;
|
top.fill_off = poly.fill_off;
|
||||||
top.last = poly.last;
|
top.last = poly.last;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue