Reputation: 11
How can I cut geometry from geometry in THREE.JS?
How can I cut geometry from groups of geometry?
Upvotes: 0
Views: 375
Reputation: 6986
There is a library called ThreeCSG (stands for "constructive solid geometry") that can do exactly that.
But you should be aware that these kinds of operations are immensely computationally expensive to do, so you might want to look for something different if you plan to update the geometry on every frame. For a simple case like shown in the picture it shouldn't be too complicated to find a shortcut and doing it manually.
Upvotes: 1