123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!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">
- A class containing utility functions for shapes.<br /><br />
- Note that these are all linear functions so it is neccessary to calculate separately for
- x, y (and z, w if present) components of a vector.
- </p>
- <h2>Methods</h2>
- <h3>[method:Number area]( contour )</h3>
- <p>
- contour -- 2D polygon. An array of THREE.Vector2()<br /><br />
- Calculate area of a ( 2D ) contour polygon.
- </p>
- <h3>[method:Boolean isClockWise]( pts )</h3>
- <p>
- pts -- points defining a 2D polygon<br /><br />
- Note that this is a linear function so it is neccessary to calculate separately for
- x, y components of a polygon.<br /><br />
- Used internally by [page:Path Path],
- [page:ExtrudeGeometry ExtrudeGeometry] and [page:ShapeGeometry ShapeGeometry].
- </p>
- <h3>[method:Array triangulateShape]( contour, holes )</h3>
- <p>
- contour -- 2D polygon.<br />
- holes -- array of holes<br /><br />
- Used internally by [page:ExtrudeGeometry ExtrudeGeometry] and [page:ShapeGeometry ShapeGeometry] to calculate faces in shapes with holes.
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|