D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
1wheel
Full window
Github gist
naive triangulation
Naive triangle of a simple polygon, with worst case quadratic performance.
<!DOCTYPE html> <meta charset="utf-8"> <style> html{ overflow: hidden; } body{ margin: 0px; } circle{ cursor: pointer; } </style> <body> <div id='graph'></div> <script src="d3v4+jetpack.js"></script> <script src='geometry.js'></script> <script src='script.js'></script> </body>