Get vertices info from clipPlane possible?

Hi all,

I find a very intresting function –clipPlane here. Babylon.js Playground
This is actually what I have been searching for a long time. I want to cut the mesh with a plane, and get the contour of the cutted mesh. Something like finding the intersection of two meshes:

Is it possible to get the vertices from the clipped mesh contour? or if is somewhere a methode to return the intersection of meshes? It should be saved somehow in the geometry buffer somewhere…

Thanks a lot!


clipping is done at rendering time so there is no way to get info from the CPU

Maybe you want to look at CSG?

ok, thanks, i will go into CSG to have a look.