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
Now I'm goint to use ThreeCSG to subtract B from A (At first I had the problem of unsupported geometry error and after some googling I got here, creating geometries from buffer geometry, that error has gone but the new error appeared! ):
// convert buffer geometry to geometryvarA_geometry=newTHREE.Geometry().fromBufferGeometry(A.geometry);varB_geometry=newTHREE.Geometry().fromBufferGeometry(B.geometry);// convert to BSPvarA_bsp=newThreeBSP(A_geometry);varB_bsp=newThreeBSP(B_geometry);// subtractvarsubtract_bsp=A_bsp.subtract(B_bsp);// convert back to meshvarresult=subtract_bsp.toMesh();// add to the scenescene.add(result);
But the error I get:
ThreeCSG.js:434 Uncaught RangeError: Maximum call stack size exceeded
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:434)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
at new window.ThreeBSP.ThreeBSP.Node (ThreeCSG.js:455)
I think it's because the faces of the STL files are too large (each about 200,000). Is there a way to handle this?
The text was updated successfully, but these errors were encountered:
Hello
I have 2 STL models imported via this code (simplified):
Now I'm goint to use ThreeCSG to subtract B from A (At first I had the problem of unsupported geometry error and after some googling I got here, creating geometries from buffer geometry, that error has gone but the new error appeared! ):
But the error I get:
I think it's because the faces of the STL files are too large (each about 200,000). Is there a way to handle this?
The text was updated successfully, but these errors were encountered: