second half of outline strategy
This commit is contained in:
parent
10c7bec3c8
commit
8a7b9f9a52
1 changed files with 3 additions and 3 deletions
|
|
@ -720,7 +720,7 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
|
|||
function descend(stack, inside, outline) {
|
||||
if (stack.length === 0) return;
|
||||
let tops = stack[0];
|
||||
let flat = POLY.flatten(tops).filter(poly => !poly.marked);
|
||||
let flat = (outline ? POLY.flatten(tops) : tops).filter(poly => !poly.marked);
|
||||
if (flat.length === 0) return;
|
||||
if (inside) {
|
||||
flat = flat.filter(p => p.isInside(inside));
|
||||
|
|
@ -744,10 +744,10 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
|
|||
}
|
||||
if (outline) {
|
||||
output.forEach(poly => {
|
||||
descend(stack.slice(1), poly);
|
||||
descend(stack.slice(1), poly, outline);
|
||||
});
|
||||
} else {
|
||||
descend(stack.slice(1), poly);
|
||||
descend(stack.slice(1), poly, outline);
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue