wrong result
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
Hi,
First of all, thanks for sharing your code.
I tried to use poly2tri with following point, but unfortunately it only returns
1 triangle.
0.0499448 0.0749724
0.0500215 0.0749893
0.050231 0.0742612
0.049355 0.0741333
0.05 0.075
Can any one help me please???
Original issue reported on code.google.com by asadi.ho...@gmail.com
on 21 Oct 2013 at 3:47
GoogleCodeExporter commented
Original comment by thahlen@gmail.com
on 25 Oct 2013 at 8:37
- Changed state: Invalid
GoogleCodeExporter commented
You list of points doesn't form a simple polygon.
Go here: http://javascript.poly2tri.googlecode.com/hg/index.html
Select empty then paste your points and triangulate. You will see that edges of
the polygon is intersecting and you got a complex polygon.
Poly2Tri is a lib to triangulate simple polygons.
When your input is complex and you can't get around it you need to preprocess
your data with a lib like Clipper.
Original comment by thahlen@gmail.com
on 21 Oct 2013 at 4:05