/delaunator

TypeScript library that generates Delaunay Triangulations

Primary LanguageTypeScript

Node.js CI

Delaunator

TypeScript library that generates Delaunay Triangulations

Install

npm install @jrsmiffy/delaunator

Release

make release bump=<VERSION>|major|minor|patch notes="<NOTES>"

Test

npx jest --coverage

Example

 // https://github.com/jrsmth/delaunay
 let points: Point[] = Delaunay.generatePoints(svgWidth, svgHeight, numberOfPoints);
 let triangulation: Triangle[] = Delaunay.triangulate(points);