grimsa / polysplit

An implementation of polygon splitting algorithm (unfinished)
MIT License
10 stars 6 forks source link

Precision issues #3

Open grimsa opened 8 years ago

grimsa commented 8 years ago

As floating point numbers are used to represent coordinates, there are precision issues (having cumulative effects).

For example, if we are calculating the location of a point that divides an edge by a previously calculated ratio, sometimes it might produce a point that lies slightly off the edge. In once case around 4% difference in expected and actual areas of subpolygon was observed.

Ideas for improvement: