Closed Tsukinara closed 5 years ago
Extending on top of #28 and #16, voronoi.polygons will either crash, return incorrect data, or run out of memory on certain sets of linear data.
JSFiddle demonstrating the second case (incorrect polygons) here: https://jsfiddle.net/y3t9026e/ I've also generated a couple of other bad datasets for all 3 different cases here: https://pastebin.com/hHxWEvb1
Unfortunately, Delaunay also fails for linear data sets (since triangles cannot be generated within points in a line), so that is not an option for the time being.
Sounds like this is covered by #28.
Extending on top of #28 and #16, voronoi.polygons will either crash, return incorrect data, or run out of memory on certain sets of linear data.
JSFiddle demonstrating the second case (incorrect polygons) here: https://jsfiddle.net/y3t9026e/ I've also generated a couple of other bad datasets for all 3 different cases here: https://pastebin.com/hHxWEvb1
Unfortunately, Delaunay also fails for linear data sets (since triangles cannot be generated within points in a line), so that is not an option for the time being.