How do I get the Mesh that is the Intersection of 2 other meshes

Hi
In the Mesh class I see there is a method intersectsMesh
??How do I get the Mesh that is the intersection

if(meshA.intersectsMesh(meshB)){
	meshC = ????Mesh of the intersection
}

Thanks

It seems CSG is what you need:

3 Likes

Thanks I’ll have a read through this

Hi,
Is there any way to merge meshes using react-babylonjs?

Welcome aboard!

I think you should create a new thread and indicate it’s React related in the title to be sure the right people will see it.

Also, CSG should work in react-babylon exactly like vanilla Babylon

1 Like