Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split mesh feature? #19

Open
danhambleton opened this issue Apr 30, 2015 · 1 comment
Open

Split mesh feature? #19

danhambleton opened this issue Apr 30, 2015 · 1 comment

Comments

@danhambleton
Copy link

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
Copy link
Owner

gilbo commented Apr 30, 2015

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 [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants