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

crash with square polygon #99

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Open

crash with square polygon #99

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

the attached polygon crashes poly2try. I scaled the data from -1 to 1 and 
trimmed the precision to 12 places. 



Original issue reported on code.google.com by [email protected] on 23 May 2014 at 7:19

Attachments:

@GoogleCodeExporter
Copy link
Author

The collinear tests uses epsilon 1e-12. Seems rounding to 12 places you still 
can get problems with this test when points are pretty much on a straight line. 
I suggest you round to 10 decimals for stability and you can live with that 
precision.

Now it failed on these three points:
 0.039998765886 -0.0435900408056
 5.65431943371e-016 -0.043590040805
 -0.039998765886 -0.0435900408056 

Should solve your problems.

Original comment by [email protected] on 23 May 2014 at 8:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant