diff --git a/src/sliceActions/intersectionsToShapes.js b/src/sliceActions/intersectionsToShapes.js index 25ba3e2..7b8b58f 100644 --- a/src/sliceActions/intersectionsToShapes.js +++ b/src/sliceActions/intersectionsToShapes.js @@ -87,7 +87,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac for (const objectIndex in shapes) { const shape = shapes[objectIndex] .map(lineSegment => lineSegment.map(pointIndex => points[pointIndex])) - .filter(lineSegment => lineSegment.some(i => !almostEquals(lineSegment[0], lineSegment[1]))); + .filter(lineSegment => lineSegment.some(point => !almostEquals(lineSegment[0], point))); const openShape = openObjectIndexes[objectIndex]; const connectPoints = [];