Open JobLeonard opened 7 years ago
https://en.wikipedia.org/wiki/Alpha_shape
https://www.npmjs.com/package/alpha-shape
https://mikolalysenko.github.io/alpha-shape/index.html
Probably not scaling to hundreds of thousands of points, but still interesting
So I've been checking Delaunay libraries for JS (it's the typical kind of thing where you hope someone implemented a robust library for you), since it looks like we're going to need one.
I suspect this is the best option:
https://www.npmjs.com/package/delaunator
Four reasons:
This looks promising, and it has a JS library too! "All" we need is a way to convert the points to a polygon: https://www.mapbox.com/blog/polygon-center/