Closed kylemcdonald closed 7 years ago
Thanks for the report @kylemcdonald and for the test data!
The problem was that points outside of the bounding box (0,0),(width,height) were never really supported properly, and that was a poor design choice by me.
I've updated the api to take a bounding rectangle (or null) and the function now prunes the input points based on the bounding box.
The documentation was updated with a note about this.
Feel free to test these fixes on the https://github.com/JCash/voronoi/tree/dev branch I'll probably merge into master in a couple of days.
The master branch is now updated with these fixes from dev
Example file attached: test.csv.zip
Here is a visualization of where the two problematic points are:
If I remove either of these points, the problem goes away.