Earcut.html 850 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. An implementation of the earcut polygon triangulation algorithm. The code is a port of [link:https://github.com/mapbox/earcut mapbox/earcut].
  14. </p>
  15. <h2>Methods</h2>
  16. <h3>[method:Array triangulate]( data, holeIndices, dim )</h3>
  17. <p>
  18. data -- A flat array of vertice coordinates.<br /><br />
  19. holeIndices -- An array of hole indices if any.<br /><br />
  20. dim -- The number of coordinates per vertice in the input array.<br /><br />
  21. </p>
  22. <h2>Source</h2>
  23. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  24. </body>
  25. </html>