checkpoint new support / rotation work

This commit is contained in:
Stewart Allen 2021-01-24 00:13:09 -05:00
commit dba922753c
9 changed files with 250 additions and 158 deletions

View file

@ -199,8 +199,9 @@
});
// fixed supports (generated ahead of time)
const fixed = Object.values(settings.widget[widget.id].support || {});
let shadow = null;
let wannot = settings.widget[widget.id] || {},
fixed = Object.values(wannot.support || {}),
shadow = null;
if (fixed.length || spro.sliceSupportEnable) {
// create shadow. TODO test if any supports set
let alltops = slices.map(slice => slice.topPolys()).flat();
@ -284,7 +285,7 @@
doSupportFill(slice, lineWidth, spro.sliceSupportDensity, minArea);
}, "support");
} else if (true) {
doSupportBelt(slices, spro, fixed, shadow, doupdate);
// doSupportBelt(slices, spro, fixed, shadow, doupdate);
}
// render if not explicitly disabled