diff --git a/src/d3/ShapesManager.js b/src/d3/ShapesManager.js index 4953e20..897e64a 100644 --- a/src/d3/ShapesManager.js +++ b/src/d3/ShapesManager.js @@ -85,6 +85,7 @@ export default class ShapesManager extends THREE.Object3D { if (!solid && d3Visible) { const hole = this._meshes[id].mesh._mesh; const holeGeometry = new THREE.Geometry().fromBufferGeometry(hole.geometry); + if (holeGeometry.vertices.length === 0) continue; const holeBSP = new THREE_BSP(holeGeometry); if (!this._holes) { this._holes = holeBSP;