You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var bBox = new THREE.Box3().setFromObject(doorMesh),
cubeGeom = new THREE.BoxGeometry(bBox.size().x,bBox.size().y,bBox.size().z),
cubeMesh = new THREE.Mesh(cubeGeometry,new THREE.MeshNormalMaterial),
geom = new THREE.Geometry();
cubeMesh.position.set(doorMesh.position.x,doorMesh.position.y,doorMesh.position.z);
cubeMesh.updateMatrix();
geom.merge(cubeMesh.geometry, cubeMesh.matrix);
var cubeBsp = new ThreeBSP(geom),
wallBsp = new ThreeBSP(wallMesh.geometry);
var sub = wallBsp.subtract(cubeBsp);
I am doing the above steps but it's not working. However when I convert cubeGeometry to BSP instead of geom then it works but the cut is at the center of the object.
The text was updated successfully, but these errors were encountered:
Below is my code
I am doing the above steps but it's not working. However when I convert cubeGeometry to BSP instead of geom then it works but the cut is at the center of the object.
The text was updated successfully, but these errors were encountered: