My goal is to merge two geometries/meshes (red and blue) into a single unified entity. However, when I create a new geometry and use geometry.merge(), I notice that the inner vertices and faces remain (the green area).
I want to eliminate this extra information to prevent visual glitches on the rendered faces and ensure accurate calculation of the merged volume. I envision a final result similar to the last picture, with a single mesh that contains only the essential external/outer faces and vertices, eliminating the inner ones.
https://i.sstatic.net/ISV8q.png
I attempted using ThreeCSG to subtract meshes, but encountered frequent crashes when working with large models. I also tried using a raycaster to identify common faces, but found that it significantly impacts performance with bigger models.
As ThreeCSG seems to be problematic for my needs, I am exploring other faster options that are less reliant on the mesh's triangle count. Are there alternative solutions that can achieve this efficiently?