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

poly2tri crashes on a very simple geometry #96

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 1 comment
Open

poly2tri crashes on a very simple geometry #96

GoogleCodeExporter opened this issue Aug 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

For some reason poly2tri creates a segmentation fault when I ask it to create 
the triangulation of a very simple geometry. I've attached a .cpp file to 
reproduce the error and a .svg file which shows the geometry.

The file was compiled with Clang 3.4 using std=c++11 on linux. Hope I have not 
forgotten something important.

Raffael

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

Attachments:

@GoogleCodeExporter
Copy link
Author

Using http://r3mi.github.io/poly2tri.js/ i added the geometry.svg
<path d="M 0,0 L 0,400 L 108,399 L 199,319 L 360,400 L 400,400 z "/> as contour 
and triangulated without problems.

for optimal stability you should center your data around 0 and scale it in the 
range -1,1 and round it to 12 decimals.

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

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