Unstable
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
Try tis polygon with JS version:
-816 657,
-822 644,
-822 945,
-816 952,
-810 957,
-810 669
after adding some (small) jitter, I can get it to work, 50% of time.
Original issue reported on code.google.com by dusan.ma...@gmail.com
on 29 Sep 2012 at 12:39
GoogleCodeExporter commented
This is duplicate of #44 , it even includes a patch, can you update your repo
or do you really insist on a silly path file?
Original comment by dusan.ma...@gmail.com
on 3 Oct 2012 at 9:31
GoogleCodeExporter commented
The JS version is a community port of poly2tri so I can't really help you with
why it doesn't work :/.
The epsilon values in poly2tri was picked to get best precision when points are
in the range -1,1. Maybe try to rescale and see if you can get better
precision, but I doubt this is the issue in this case.
I tried given pointset with the Java version and it works fine.
Original comment by thahlen@gmail.com
on 29 Sep 2012 at 2:19
GoogleCodeExporter commented
I have applied that patch. Would like to understand why it is needed since it
isn't needed in the java version.
Oh well. If it works it works :P
Original comment by thahlen@gmail.com
on 3 Oct 2012 at 3:24
- Changed state: Done