-
Notifications
You must be signed in to change notification settings - Fork 200
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
The calculation of the convex hull never ends #21
Comments
Appears to be numerical error; it is getting stuck unable to include remaining outside points in the hull. You can technically get it to pass by changing this to But it's been so long that I cannot immediately say with confidence what other consequences that will have. A perhaps more reliable workaround would be to call I'm short on time for the foreseeable future (focusing on v2 stuff), so I won't be able to dig into this. If you happen to figure out a deeper/better fix, I would take a PR. |
It's all very odd! VB:
C#
Or is there something I don't know? Why is there a difference in calculations? |
I see it still happen on the new C# snippet, for the same reasons as before. The same workarounds also work. |
Hello @RossNordby !
While playing with generating of random points for convex hull, i found a strange bug. Usually there are two results: successful constructed shape, or throwing some of errors like "Point set must have volume" or "Point set is degenerate; convex hulls must have volume" etc. But there is another unexpected way - the function never returns, eternal internal execution.
This code for test:
Both "GetConvexHull" and constructor of "ConvexHullShape" will hanging when calling "TestConvexHull".
The text was updated successfully, but these errors were encountered: