Cutting model into 2 3DObjects

HI,

I have 3d Viewer (written in threejs). It uses different 3d models - glb file loaded from database
I need to add feature “cutting” of 3d model by surface and getting 2 3DObjects.
Thank you

you can use this library to do it GitHub - gkjohnson/three-bvh-csg: A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh