My blog: http://brashandplucky.com
healpix.sourceforge.io/index.php
And @redblobgames (always!) observablehq.com/@redblobgame...
healpix.sourceforge.io/index.php
And @redblobgames (always!) observablehq.com/@redblobgame...
I struggled with the implementation a little more than I anticipated, but here it is!
I struggled with the implementation a little more than I anticipated, but here it is!
@redblobgames -> www.redblobgames.com/x/1842-delau...
and -> github.com/Fil/d3-geo-v...
@redblobgames -> www.redblobgames.com/x/1842-delau...
and -> github.com/Fil/d3-geo-v...
- Add 3 auxiliary points creating a triangle large enough to contain all other 2D points.
- Do classic 2D Delaunay on the projected point set.
- The 3 aux points map to the point we picked as pole. The rest of points map to themselves. Done!
- Add 3 auxiliary points creating a triangle large enough to contain all other 2D points.
- Do classic 2D Delaunay on the projected point set.
- The 3 aux points map to the point we picked as pole. The rest of points map to themselves. Done!
- Rotate the pointset so said point becomes the top pole to send its projection to infinity while all other points will have a finite projection.
- Rotate the pointset so said point becomes the top pole to send its projection to infinity while all other points will have a finite projection.