-
Notifications
You must be signed in to change notification settings - Fork 14
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
How_to_adjust_convex_hull_in_3D #1
Comments
If the point are exactly co-linear/co-planar they may be ignored by Qhull because of general position/degeneracy. You could probably make a simple 2D grid to start with and study what happens there when the points are all co-linear. Qhull does have some options for dealing with these situations to some extent: http://www.qhull.org/html/qh-optq.htm#Qc You'll probably find much more intuitive behavior if you have randomly-generated points, since they won't be co-linear/co-planar. I think many convex hull algorithms encounter failures with co-linearity. |
Dear @tylerjereddy, |
I didn't check closely, but perhaps many of the other points lie on a straight line, so they'd get ignored because of degeneracy? You could use |
Dear @tylerjereddy , |
Like I said above, it sounds like you may have co-linear points because they share a coordinate value, which is a source of degeneracy for convex hull algorithms, and will often cause them to fail or produce output you do not expect. If you really want the convex hull of this point set, you can try one of two strategies:
|
Dear @tylerjereddy |
Dear @tylerjereddy,
Firstly, thanks for informative videos.
I am using
scipy
(version1.6.3
) to create convex hulls. My points are in 3D but when I use thespatial.ConvexHull
it behave strange. My points are creating a regular grid and I want points that are in the exterior part of the grid to be regarded as my border. In the fig I have shown my points. I tried the following code but when I check thevertices
of myhull
, I did not see the points that I have highlighted by a blue line in my fig.I appreciate your consideration in advance.
first_surf.txt
The text was updated successfully, but these errors were encountered: