fix settings deconstructing

This commit is contained in:
casperlamboo 2017-07-19 11:03:16 +02:00
parent 1e16c741a0
commit 3b4dbc0d4a

View File

@ -9,9 +9,9 @@ export default function generateSupport(slices, settings) {
layerHeight,
support: {
gridSize: supportGridSize,
margin: AcceptanceMargin,
margin: supportMargin,
plateSize: plateSize,
distanceY: DistanceY
distanceY: supportDistanceY
},
nozzleDiameter
} = settings;
@ -62,10 +62,10 @@ export default function generateSupport(slices, settings) {
var outerLine = slicePart.outerLine;
}
else {
var outerLine = slicePart.intersect.offset(supportAcceptanceMargin);
var outerLine = slicePart.intersect.offset(supportMargin);
}
var overlap = supportSkin.offset(supportAcceptanceMargin).intersect(outerLine);
var overlap = supportSkin.offset(supportMargin).intersect(outerLine);
var overhang = outerLine.difference(overlap);
if (overlap.length === 0 || overhang.length > 0) {