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

Handling degeneracies #14

Open
ramcdona opened this issue Dec 27, 2023 · 1 comment
Open

Handling degeneracies #14

ramcdona opened this issue Dec 27, 2023 · 1 comment

Comments

@ramcdona
Copy link

Thanks for all your work and for making this convex hull library available. I am evaluating it for use in my program.

My data sets will often contain a bunch of co-planar points. In my first tests with your tool, these cause if ( !qh.check() ) to fail. In your example, this test is accompanied with the comment // resulted structure is not convex (generally due to precision errors).

If I go ahead and try to make use of the resulting mesh, I get something messy like the following:
ConvHullWingtip

Is convhull expected to work in cases like this? Does convhull use robust geometric predicates for things like the 3D orientation test?

I have attached a points file corresponding to this test case.

test.txt

@tomilov
Copy link
Owner

tomilov commented Sep 16, 2024

No, currently it is not expected the code to work in cases like yours. Stable, robust calculations are difficult for the whole algorithm to maintain.

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