triangulate

Triangulate a 3D polygon

Usage no npm install needed!

<script type="module">
  import triangulate from 'https://cdn.skypack.dev/triangulate';
</script>

README

Triangulate

Triangulate a 3D polygon

Usage

var triangulate = require("triangulate");

var polygon = []; // [[x,y,x], [...]]
var faces = triangulate(polygon);