Get vertices info from clipPlane possible?

#1

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: https://www.babylonjs-playground.com/#0UJYJQ#1

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!

#2

Hey!

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

Maybe you want to look at CSG?
https://www.babylonjs-playground.com/#T6NP3F#0

#3

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