whizzter / poly2tri

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

the EPSILON value is not exported in the python/cython version #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. in python/cython version, trying to filter points that are closest than 
EPSILON before sending to poly2tri.
2. EPSILON is not exported from the lib. 

What is the expected output? What do you see instead?
Expected to have a read-only value for EPSILON.
A bad guess for EPSILON will either cause a crash if it's too low or will be to 
restrictive if it's too high.

What version of the product are you using? On what operating system?
Ubuntu 14.04 / Python 2.7 

Original issue reported on code.google.com by lionel.b...@gmail.com on 5 May 2015 at 9:37

GoogleCodeExporter commented 8 years ago
For the Java version I picked the EPSILON 1e-12 assuming input points would be 
in the range -1 to 1.

For decent robustness they should also be rounded to 10 decimals.

Original comment by thahlen@gmail.com on 5 May 2015 at 2:56