Fix holes

This commit is contained in:
casperlamboo 2017-12-11 15:36:19 +01:00
parent 31fc31d526
commit a46ac56620

1
src/d3/ShapeMesh.js vendored
View File

@ -74,6 +74,7 @@ class ShapeMesh extends THREE.Object3D {
} }
const objectGeometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry); const objectGeometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry);
objectGeometry.mergeVertices();
let objectBSP = new THREE_BSP(objectGeometry); let objectBSP = new THREE_BSP(objectGeometry);
objectGeometry.dispose(); objectGeometry.dispose();
objectBSP = objectBSP.subtract(holes); objectBSP = objectBSP.subtract(holes);