khct / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Unstable #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 8 years ago
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 8 years ago
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 8 years ago
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