locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.94k stars 441 forks source link

Improve performance of Delaunay triangle circumcentre computation #455

Open dr-jts opened 5 years ago

dr-jts commented 5 years ago

448 switched the Delaunay triangle circumcentre calculation to use DD arithmetic to improve the robustness of Voronoi diagram computation. This fixed an issue where the circumcentres of adjacent right isosceles triangles were computed slighly differently due to roundoff.

This probably introduces a performance degradation. It may be possible to add a filter to the circumcentre function which only uses DD arithmetic in sensitive cases. Ideas for this include:

dr-jts commented 5 years ago

See also GEOS 206