From e1d833d4f384413a9e51a749a1466625648bb0f8 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Tue, 16 Jan 2018 18:52:08 +0100 Subject: [PATCH] syntax --- src/sliceActions/generateInfills.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sliceActions/generateInfills.js b/src/sliceActions/generateInfills.js index 1a777e1..20335fd 100644 --- a/src/sliceActions/generateInfills.js +++ b/src/sliceActions/generateInfills.js @@ -18,6 +18,9 @@ export default function generateInfills(slices, settings) { const bidirectionalInfill = infillPercentage < 0.8; const infillGridSize = nozzleDiameter * (bidirectionalInfill ? 2 : 1) / infillPercentage; + + const bottomSkinCount = Math.ceil(bottomThickness / layerHeight); + const topSkinCount = Math.ceil(topThickness / layerHeight); const nozzleRadius = nozzleDiameter / 2; const outerFillTemplateSize = Math.sqrt(2 * Math.pow(nozzleDiameter, 2));