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

Does the convex decomposition only work for water tight meshes? #13

Open
Levi-Armstrong opened this issue May 7, 2018 · 1 comment
Open

Comments

@Levi-Armstrong
Copy link

The reason I ask is I have tried this on a surface mesh of a car which is attached. At first it just sat on "Filling Holes" indefinitely then I removed this operation and recompiled and it will now decompose the geometry but in to a single convex hull.

car.obj.gz

@gaschler
Copy link
Owner

gaschler commented May 7, 2018

Does the convex decomposition only work for water tight meshes?

The step after "filling holes" is a (rather simple) voxelization, and that does require a water tight mesh.
Maybe our "filling holes" algorithm is too simple for your case.
You could try to make your input water tight with a more elaborate method (perhaps Meshlab is better) and use that as an input.
If the convex decomposition CLI tool doesn't find holes, it won't spend time on that step.

it will now decompose the geometry but in to a single convex hull.

This is unrelated and should depend on mostly on the parameters.

./bounding-convex-decomposition [options] filename [filename_out.wrl]
--alpha, -a: Parameter alpha, default is 1. Increases the number of splits into convex bodies.

Even if you have very long triangles, the algorithm should be able to split them up into multiple convex segments.

Hope this helps.

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