From a46ac56620ef42baa983c02b29791e33f67dd2e6 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 11 Dec 2017 15:36:19 +0100 Subject: [PATCH] Fix holes --- src/d3/ShapeMesh.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d3/ShapeMesh.js b/src/d3/ShapeMesh.js index 1c7a95f..ed93e7a 100644 --- a/src/d3/ShapeMesh.js +++ b/src/d3/ShapeMesh.js @@ -74,6 +74,7 @@ class ShapeMesh extends THREE.Object3D { } const objectGeometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry); + objectGeometry.mergeVertices(); let objectBSP = new THREE_BSP(objectGeometry); objectGeometry.dispose(); objectBSP = objectBSP.subtract(holes);