-
Notifications
You must be signed in to change notification settings - Fork 32
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
SphericalGeometry overlap fails #118
Comments
I'm not getting the error, instead I get the answer 0.0. But there are two problems here. First, since the one polygon is entirely within the second the answer should not be zero. Looking at the source code, SphericalPolygon seems to handle the case where one polygon intersects another, but not the case where one polygon is entirely contained in another. I think there needs to be additional ocde to check for the contained case and handle it properly. Second, although I did not get the error you report, I strongly believe your problem is caused by rounding error. The code that computes the intersection between two lines is most inaccurate when the two lines are coincident or nearly coincident, because the cross product is least accurate in this case. I've thought about modifying the intersection code to test for the case of coincident lines and use different code for that case. It would help if you sent me the full printout from the assertion error that you get, as I cannot duplicate the problem myself. |
With the latest release I am getting the expected value 1. I think this is no longer an issue. |
SphericalGeometry overlap, intersection, and union all fail with an AssertionError when given nested geometries with 1 identical edge. The following code demonstrates the issue:
The text was updated successfully, but these errors were encountered: