Delaunay Triangulation
Javascript module for triangulation.
About Delaunay triangulation
A Delaunay triangulation for a set P of points in a plane is a triangulation DT(P) such that no point in P is inside the circumcircle of any triangle in DT(P). Get more information on the Wikipedia page.
Live demo
Installation
npm install delaunay-triangulation --save
Basic Usage Example
var Delaunay = ; var vertices = 10 14 1 15 18 10 8 10 10 20 // ...; var triangles = Delaunay;var ctx = document;ctxstrokeStyle = "red"; for var i = 0; i < L; i++ var t = triangles i ; ctx; ctx; ctx; ctx; ctx; ctx;
Test
License
This content is released under the MIT License.