From b8b67e664b1a78bc7d023f627dd3d103ad60c1b9 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 27 Jul 2017 16:47:36 +0200 Subject: [PATCH 1/2] Fix extruder calculation --- src/sliceActions/helpers/GCode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sliceActions/helpers/GCode.js b/src/sliceActions/helpers/GCode.js index efadde9..48bc6dc 100644 --- a/src/sliceActions/helpers/GCode.js +++ b/src/sliceActions/helpers/GCode.js @@ -107,7 +107,7 @@ export default class { const lineLength = this._nozzlePosition.distanceTo(newNozzlePosition); const filamentSurfaceArea = Math.pow((filamentThickness / 2), 2) * Math.PI; - this._extruder += lineLength * nozzleDiameter * layerHeight / filamentSurfaceArea * flowRate; + this._extruder += lineLength * ((nozzleDiameter * layerHeight) / filamentSurfaceArea) * flowRate; this._addGCode({ [MOVE]: 1, From 9bc832fcdd464fc1426375c9e57c21f7d32db74c Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 27 Jul 2017 18:05:09 +0200 Subject: [PATCH 2/2] remove infillOverlap refference --- src/sliceActions/generateInfills.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sliceActions/generateInfills.js b/src/sliceActions/generateInfills.js index 31c4ec7..0d0ca29 100644 --- a/src/sliceActions/generateInfills.js +++ b/src/sliceActions/generateInfills.js @@ -13,7 +13,6 @@ export default function generateInfills(slices, settings) { fillGridSize /= PRECISION; nozzleDiameter /= PRECISION; - infillOverlap /= PRECISION; const bottomSkinCount = Math.ceil(bottomThickness/layerHeight); const topSkinCount = Math.ceil(topThickness/layerHeight);