From cd8687d148cbc41139c6a70588be19d7456265f3 Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Tue, 6 Mar 2018 17:35:03 +0100 Subject: [PATCH] fix filled shapes --- src/sliceActions/intersectionsToShapes.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sliceActions/intersectionsToShapes.js b/src/sliceActions/intersectionsToShapes.js index 95d617e..20049e0 100644 --- a/src/sliceActions/intersectionsToShapes.js +++ b/src/sliceActions/intersectionsToShapes.js @@ -95,7 +95,11 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac const path = shape[pathIndex]; if (almostEquals(path[0], path[path.length - 1])) { - lineShapesClosed.push(path); + if (openShape) { + lineShapesClosed.push(path); + } else { + fillShapes.push(path); + } continue; }