Delaunay triangulations in any dimension
Triangulates a set of points into a Delaunay triangulation. This code works in arbitrary dimensions, and both in the server and in the browser.
Here are some in browser demos:
var triangulate =var points =0 11 01 10 005 05var triangles =console
npm install delaunay-triangulate
Constructs a Delaunay triangulation over
pointsis a collection of points in Euclidean space.
pointAtInfinityis a flag, which if set adds an extra point at infinity to give the spherical compactification of the triangulation. The index of the point at infinity is
Returns A list of cells representing the faces of the triangulation. These are triangles in 2D or tetrahedra in 3D.
(c) 2013-2014 Mikola Lysenko. MIT License