How to create a eraser tool to trim some parts of geometry?

Are you searching for something like this? GitHub - gkjohnson/three-bvh-csg: A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
Additionally here is the thread in this forum: Three-bvh-csg: A library for performing fast CSG operations!