remove overlap setting

This commit is contained in:
casperlamboo 2017-07-27 12:42:14 +02:00
parent ccc88bdb77
commit bcfbe99579
2 changed files with 2 additions and 10 deletions

View File

@ -35,7 +35,6 @@ innerLine:
fill: fill:
flowRate: 1.0 flowRate: 1.0
speed: 50.0 speed: 50.0
overlap: 0.0
gridSize: 5.0 gridSize: 5.0
brim: brim:
flowRate: 1.0 flowRate: 1.0

View File

@ -8,8 +8,7 @@ export default function generateInfills(slices, settings) {
fill: { gridSize: fillGridSize }, fill: { gridSize: fillGridSize },
bottom: { thickness: bottomThickness }, bottom: { thickness: bottomThickness },
top: { thickness: topThickness }, top: { thickness: topThickness },
nozzleDiameter, nozzleDiameter
fill: { overlap: infillOverlap }
} = settings; } = settings;
fillGridSize /= PRECISION; fillGridSize /= PRECISION;
@ -47,13 +46,7 @@ export default function generateInfills(slices, settings) {
let lowFillArea; let lowFillArea;
let highFillArea; let highFillArea;
if (surroundingLayer) { if (surroundingLayer) {
highFillArea = fillArea.difference(surroundingLayer); highFillArea = fillArea.difference(surroundingLayer).intersect(fillArea);
if (infillOverlap > 0) {
highFillArea = highFillArea.offset(infillOverlap);
}
highFillArea = highFillArea.intersect(fillArea);
lowFillArea = fillArea.difference(highFillArea); lowFillArea = fillArea.difference(highFillArea);
} else { } else {
highFillArea = fillArea; highFillArea = fillArea;