mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-04 21:53:25 +01:00
fix settings deconstructing
This commit is contained in:
parent
1e16c741a0
commit
3b4dbc0d4a
@ -9,9 +9,9 @@ export default function generateSupport(slices, settings) {
|
|||||||
layerHeight,
|
layerHeight,
|
||||||
support: {
|
support: {
|
||||||
gridSize: supportGridSize,
|
gridSize: supportGridSize,
|
||||||
margin: AcceptanceMargin,
|
margin: supportMargin,
|
||||||
plateSize: plateSize,
|
plateSize: plateSize,
|
||||||
distanceY: DistanceY
|
distanceY: supportDistanceY
|
||||||
},
|
},
|
||||||
nozzleDiameter
|
nozzleDiameter
|
||||||
} = settings;
|
} = settings;
|
||||||
@ -62,10 +62,10 @@ export default function generateSupport(slices, settings) {
|
|||||||
var outerLine = slicePart.outerLine;
|
var outerLine = slicePart.outerLine;
|
||||||
}
|
}
|
||||||
else {
|
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);
|
var overhang = outerLine.difference(overlap);
|
||||||
|
|
||||||
if (overlap.length === 0 || overhang.length > 0) {
|
if (overlap.length === 0 || overhang.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user