split polishing into x and y passes
This commit is contained in:
parent
230a1e5f66
commit
fa92a3065d
4 changed files with 40 additions and 20 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue