123456789101112131415161718192021222324252627282930313233343536 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <p class="desc">
- An implementation of the earcut polygon triangulation algorithm. The code
- is a port of [link:https://github.com/mapbox/earcut mapbox/earcut].
- </p>
- <h2>Methods</h2>
- <h3>[method:Array triangulate]( data, holeIndices, dim )</h3>
- <p>
- data -- A flat array of vertex coordinates.<br />
- holeIndices -- An array of hole indices if any.<br />
- dim -- The number of coordinates per vertex in the input array.<br /><br />
- Triangulates the given shape definition by returning an array of
- triangles. A triangle is defined by three consecutive integers
- representing vertex indices.
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|