split polishing into x and y passes

This commit is contained in:
Stewart Allen 2020-03-05 18:36:12 -05:00
commit fa92a3065d
4 changed files with 40 additions and 20 deletions

View file

@ -803,10 +803,13 @@ var gs_kiri_print = exports;
});
// produce polishing paths when present
if (slice.tops.length) {
let polish = slice.tops[0].polish;
if (polish) {
outputSparse(polish, 0);
if (slice.tops.length && slice.tops[0].polish) {
let {x,y} = slice.tops[0].polish;
if (x) {
outputSparse(x, 0);
}
if (y) {
outputSparse(y, 0);
}
}