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 attached polygon #97

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 2 comments
Open

crash with attached polygon #97

GoogleCodeExporter opened this issue Aug 6, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

triangulate the attached polygon will crash

vs2012 Windows 7 32 bit


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

Attachments:

@GoogleCodeExporter
Copy link
Author

The input data has to high precision. Round the data to 12 decimals

The thing is you have 3 points on a line with y coordinates. 
19, 19.000000000000004 and 19 

poly2tri will try to form a triangle and it will be degenerate. You will have 
to round your data within epsilon 1e-12 and also make sure that no two points 
get the same coordinate after the rounding.

Original comment by [email protected] on 22 May 2014 at 8:49

@GoogleCodeExporter
Copy link
Author

I suggest you paste your data and triangulate with this app. when you get 
errors. Might give you the reason of the triangulation failure.

http://r3mi.github.io/poly2tri.js/

Original comment by [email protected] on 22 May 2014 at 8:53

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