Constructs a delaunay triangulation object given an array of point coordinates of the form: [x0, y0, x1, y1, ...] (use a typed array for best performance).
flattened array of x,y points. e.g. [x1, y1, x2, y2, ...]
Updates the triangulation if you modified delaunay.coords values in place, avoiding expensive memory allocations. Useful for iterative relaxation algorithms such as Lloyd's.
Static
fromflattened array of x,y points. e.g. [[x1, y1], [x2, y2], ...]
Static
fromflattened array of x,y vector points. e.g. [{ x1, y1 }, { x2, y2 }, ...]
Delaunator
Description
An incredibly fast and robust Typescript library for Delaunay triangulation of 2D points.
Usage
Links