change support growth location so they can be properly clipped later
This commit is contained in:
parent
75fc39b545
commit
0976b3181f
2 changed files with 5 additions and 3 deletions
|
|
@ -27,6 +27,11 @@ base.slicePost.FDM = function(data, options) {
|
||||||
const { shellOffset, fillOffset, clipOffset } = post_args;
|
const { shellOffset, fillOffset, clipOffset } = post_args;
|
||||||
data.tops = POLY.nest(groups);
|
data.tops = POLY.nest(groups);
|
||||||
if (isSynth) {
|
if (isSynth) {
|
||||||
|
const process = post_args.process;
|
||||||
|
if (process.sliceSupportGrow > 0) {
|
||||||
|
// expand synth supports here so they can be clipped later
|
||||||
|
data.tops = POLY.expand(data.tops, process.sliceSupportGrow, data.z, []);
|
||||||
|
}
|
||||||
// do not shell synth widgets because
|
// do not shell synth widgets because
|
||||||
// they will be clipped against peers later
|
// they will be clipped against peers later
|
||||||
// which requires shelling post-clip
|
// which requires shelling post-clip
|
||||||
|
|
|
||||||
|
|
@ -781,9 +781,6 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
|
||||||
let params = slice.params || process;
|
let params = slice.params || process;
|
||||||
let density = params.sliceSupportDensity;
|
let density = params.sliceSupportDensity;
|
||||||
let supports = slice.topShells();
|
let supports = slice.topShells();
|
||||||
if (params.sliceSupportGrow > 0) {
|
|
||||||
supports = POLY.expand(supports, params.sliceSupportGrow, slice.z, []);
|
|
||||||
}
|
|
||||||
slice.supports = supports;
|
slice.supports = supports;
|
||||||
slice.tops = undefined; // remove outline leave only supports
|
slice.tops = undefined; // remove outline leave only supports
|
||||||
let polys = [];
|
let polys = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue