gilbo / cork

3D Boolean / CSG Library
Other
406 stars 173 forks source link

Split mesh feature? #19

Open danhambleton opened 9 years ago

danhambleton commented 9 years ago

Hi there,

I was wondering if it's possible to split a mesh with another mesh using cork. I think this stage must happen anyway during a union - perhaps there is a way to access it directly?

Great library, btw!

gilbo commented 9 years ago

You can look at the C++ API more directly, but I think there’s an intersection call even in the C API. This will merge the triangle lists for the two meshes into one. (i.e. it will intersect the two surfaces) At that point, all you have to do is go through and delete all the triangles and vertices you don’t want to keep, which hopefully is simpler to do?

— Gilbert

On Apr 30, 2015, at 12:10 PM, danhambleton notifications@github.com wrote:

Hi there,

I was wondering if it's possible to split a mesh with another mesh using cork. I think this stage must happen anyway during a union - perhaps there is a way to access it directly?

Great library, btw!

— Reply to this email directly or view it on GitHub.