allow FDM mixing of automatic and manual / detected supports. add outline toggling to automatic supports

This commit is contained in:
Stewart Allen 2022-10-13 11:16:44 -04:00
commit fc6973ecf9
5 changed files with 68 additions and 69 deletions

View file

@ -35,7 +35,7 @@ FDM.prepare = function(widgets, settings, update) {
widgets = widgets.filter(w => !w.track.ignore && !w.meta.disabled);
let { device, process, controller, bounds, mode } = settings,
{ sliceHeight, firstSliceHeight, firstLayerRate } = process,
{ sliceHeight, firstSliceHeight, firstLayerRate, sliceSupportOutline } = process,
{ outputSeekrate, outputDraftShield, outputPurgeTower } = process,
{ bedWidth, bedDepth, filamentSource } = device,
{ lineType, danger } = controller,
@ -1358,7 +1358,9 @@ function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {
print.setType('support');
// support polygon
next.setZ(z);
outputTraces([next].appendAll(next.inner || []));
if (sliceSupportOutline !== false) {
outputTraces([next].appendAll(next.inner || []));
}
if (next.fill) {
next.fill.forEach(p => { p.z = z });
outputFills(next.fill, {fast: true});