123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">
- Triangle face.
- </div>
- <h2>Example</h2>
- <code>var normal = new THREE.Vector3( 0, 1, 0 );
- var color = new THREE.Color( 0xffaa00 );
- var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );</code>
- <h2>Constructor</h2>
- <h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer materialIndex] )</h3>
- <div>
- a — Vertex A index.<br />
- b — Vertex B index.<br />
- c — Vertex C index.<br />
- normal — Face normal or array of vertex normals.<br />
- color — Face color or array of vertex colors.<br />
- materialIndex — Material index.
- </div>
- <h2>Properties</h2>
- <h3>.[page:Integer a]</h3>
- <div>
- Vertex A index.
- </div>
- <h3>.[page:Integer b]</h3>
- <div>
- Vertex B index.
- </div>
- <h3>.[page:Integer c]</h3>
- <div>
- Vertex C index.
- </div>
- <h3>.[page:Vector3 normal]</h3>
- <div>
- Face normal.
- </div>
- <h3>.[page:Color color]</h3>
- <div>
- Face color.
- </div>
- <h3>.[page:Array vertexNormals]</h3>
- <div>
- Array of 3 vertex normals.
- </div>
- <h3>.[page:Array vertexColors]</h3>
- <div>
- Array of 3 vertex colors.
- </div>
- <h3>.[page:Array vertexTangents]</h3>
- <div>
- Array of 3 vertex tangents.
- </div>
- <h3>.[page:Integer materialIndex]</h3>
- <div>
- Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
- </div>
- <h2>Methods</h2>
- <h3>.clone()</h3>
- <div>
- Creates a new clone of the Face3 object.
- </div>
-
-
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|