Closed joferkington closed 13 years ago
Thank you.
Unfortunately, it seems to introduce another issue. It breaks test_convex3(). It also breaks test_polygon(), but I think it is actually test_polygon() which needs to be improved.
This needs to be fixed, though. I'm working on it.
Just incorporated this fix into master with a hackish solution for the convex hull issue.
Thank you again!
As a simple example to reproduce the problem:
Fortunately the fix is quite simple. I'm at work and don't have git available, otherwise I'd submit a pull request, but it appears to be a single-line fix.
On line 105 of
mahotas/polygon.py
: The lineif p[0] <= y and pj[0] >= y or pj[0] <= y and p[0] >= y:
Should be:if p[0] < y and pj[0] >= y or pj[0] < y and p[0] >= y:
Cheers, and thanks for a very useful piece of software!