From b8b67e664b1a78bc7d023f627dd3d103ad60c1b9 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 27 Jul 2017 16:47:36 +0200 Subject: [PATCH] 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,