Demo: interactive cutting of pieces off a mesh (three-bvh-csg, rapier3d)

On motion of the brush (can be moved with arrow keys of TransformControls), CSG subtraction is applied to the mesh.
Mesh is updated to the CSG result each time, so that subtractions accumulate.
Then mesh islands are detected and mesh is split. New pieces are added to the physics simulation.

three-bvh-csg is used for CSG, and rapier3d for physics.

I think this might be useful for some simulation applications, or maybe as a game mechanic?

Code is in my fork of three-bvh-csg: GitHub - coolvision/three-bvh-csg at iterative-dev

8 Likes

I think this might be useful for some simulation applications, or maybe as a game mechanic?

the games you could already realise on top of that … diamond digger just with real physics :smiley: