update sla device with resolution. add halot sky device

This commit is contained in:
Stewart Allen 2021-07-24 18:02:09 -04:00
commit ed9ddfd83e
10 changed files with 48 additions and 14 deletions

View file

@ -1034,10 +1034,10 @@
* 'expand' is used for top offsets in SLA mode
*/
function doDiff(slice, minArea, options = {}) {
const { sla, fakedown } = options;
if (slice.index === 0 && !fakedown) {
return;
}
const { sla, fakedown } = options;
const top = slice,
down = slice.down || (fakedown ? newSlice(-1) : null),
topInner = sla ? top.topPolys() : top.topInners(),