How to remove unnecessary lines?

image
When I use three-bvh-csg to construct complex meshes, I need to outline the mesh after it’s built. However, there always appear to be extra lines. I want to ensure that the newly constructed mesh is only outlined at the edges, without any extra lines on the surfaces. What should I do? Thank you very much.

Consider either this way (works nicely as long as it’s applied to a single geometry), or just using a postprocessing outline (either the built-in one or the external one.)

The second option may be less troublesome in this case.