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

Patch to compute the volume and area of convex hulls #5014

Merged
merged 2 commits into from Jul 3, 2015
Merged

Conversation

haudren
Copy link
Contributor

@haudren haudren commented Jul 3, 2015

As mentioned in issue #5013 , I would like to be able to contribute a small patch enabling the volume and area computation of convex hulls.

As this is already implemented in qhull, I added the correct bindings and a simple unit test. Unfortunately, I don't have Cython 0.22 on my Ubuntu machine, meaning that I could not build against the most recent version of scipy but test passed on older versions and I don't think qhull has changed much since.

Please tell me if I can improve this in any way.

Hervé Audren

@pv
Copy link
Member

pv commented Jul 3, 2015 via email

@pv pv merged commit 6d4bec3 into scipy:master Jul 3, 2015
pv added a commit that referenced this pull request Jul 3, 2015
ENH: spatial: make convex hull area and volume available
@pv
Copy link
Member

pv commented Jul 3, 2015 via email

@haudren
Copy link
Contributor Author

haudren commented Jul 3, 2015

Ok thank you ! I also just added another test from random input on my branch (This was to compare it with my old and bad bindings of libqhullcpp), feel free to add it if you think it is useful.

@pv
Copy link
Member

pv commented Jul 3, 2015 via email

@larsmans
Copy link
Contributor

Thanks for this patch, I was sorely missing this method!

@ev-br ev-br added this to the 0.17.0 milestone Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants