alaprajz
alaprajz

Reputation: 11

Objects boole / intersection in THREE.JS

How can I cut geometry from geometry in THREE.JS?

How can I cut geometry from groups of geometry?

enter image description here

Upvotes: 0

Views: 375

Answers (1)

Martin Schuhfuß
Martin Schuhfuß

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

Related Questions