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

Threshold too high #8

Closed
Pippo809 opened this issue Feb 28, 2023 · 6 comments
Closed

Threshold too high #8

Pippo809 opened this issue Feb 28, 2023 · 6 comments

Comments

@Pippo809
Copy link

I am trying to compute the convex decomposition of a mechanism but the threshold parameter is too high and does not allow to obtain a usable result.
Original file

Decomposed file

What can I do to obtain a better result?

@Colin97
Copy link
Collaborator

Colin97 commented Feb 28, 2023

Have you ever tried a lower concavity threshold by using -t option?

@Pippo809
Copy link
Author

Pippo809 commented Mar 1, 2023

Yes, those are the results with the lowest setting possible (-t 0.01) I was wondering why there wasn't an option to go lower

@Colin97
Copy link
Collaborator

Colin97 commented Mar 1, 2023

Would you mind sharing your input files?

@SarahWeiii
Copy link
Owner

SarahWeiii commented Mar 5, 2023

Hi the pre-processing will remesh non-manifold mesh and may lose some details. So the problem may not be caused by the threshold. If your mesh is manifold, you can use -np to turn off the pre-process; if not, you can try to increase the remeshing resolution by -pr.

@AbdeAltheria
Copy link
Contributor

As @SarahWeiii commented, it may be mostly problem of the non-manifold preprocessing. In some applications, I tried using CoACD without pre-processing for general meshes (manifold and non-manifold) and it works in most cases. In the worst of the cases, it diverges a little bit, but it converges eventually for every mesh.

@SarahWeiii
Copy link
Owner

If not using pre-processing for non-manifold meshes, there may be trouble in the triangulation of newly generated parts during cutting, which can lead to redundant convex hulls. But in general, it should not affect the approximation of the original shape.

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

4 participants