From 3d308e2533bad746f1cd57f8635f5aae0476ef50 Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Mon, 19 Feb 2018 13:53:18 +0100 Subject: [PATCH] fix intersections to shapes step --- src/sliceActions/intersectionsToShapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sliceActions/intersectionsToShapes.js b/src/sliceActions/intersectionsToShapes.js index 60b841f..2aaac92 100644 --- a/src/sliceActions/intersectionsToShapes.js +++ b/src/sliceActions/intersectionsToShapes.js @@ -91,7 +91,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac for (let pathIndex = 0; pathIndex < shape.length; pathIndex ++) { const path = shape[pathIndex]; - if (path.length === 2 && almostEquals(path[0], path[1])) continue; + if (almostEquals(path[0], path[path.length - 1])) continue; let shapeStartPoint = path[0]; for (const point of connectPoints) {