1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8" />
|
---|
5 | <script src="../../list.js"></script>
|
---|
6 | <script src="../../page.js"></script>
|
---|
7 | <link type="text/css" rel="stylesheet" href="../../page.css" />
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | <h1>[name]</h1>
|
---|
11 |
|
---|
12 | <div class="desc">
|
---|
13 | Triangle face.
|
---|
14 | </div>
|
---|
15 |
|
---|
16 |
|
---|
17 | <h2>Example</h2>
|
---|
18 |
|
---|
19 | <code>var normal = new THREE.Vector3( 0, 1, 0 );
|
---|
20 | var color = new THREE.Color( 0xffaa00 );
|
---|
21 | var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );</code>
|
---|
22 |
|
---|
23 |
|
---|
24 | <h2>Constructor</h2>
|
---|
25 |
|
---|
26 | <h3>[name]( [page:Integer a], [page:Integer b], [page:Integer c], [page:Vector3 normal], [page:Color color], [page:Integer materialIndex] )</h3>
|
---|
27 | <div>
|
---|
28 | a â Vertex A index.<br />
|
---|
29 | b â Vertex B index.<br />
|
---|
30 | c â Vertex C index.<br />
|
---|
31 | normal â Face normal or array of vertex normals.<br />
|
---|
32 | color â Face color or array of vertex colors.<br />
|
---|
33 | materialIndex â Material index.
|
---|
34 | </div>
|
---|
35 |
|
---|
36 | <h2>Properties</h2>
|
---|
37 |
|
---|
38 | <h3>.[page:Integer a]</h3>
|
---|
39 | <div>
|
---|
40 | Vertex A index.
|
---|
41 | </div>
|
---|
42 |
|
---|
43 | <h3>.[page:Integer b]</h3>
|
---|
44 | <div>
|
---|
45 | Vertex B index.
|
---|
46 | </div>
|
---|
47 |
|
---|
48 | <h3>.[page:Integer c]</h3>
|
---|
49 | <div>
|
---|
50 | Vertex C index.
|
---|
51 | </div>
|
---|
52 |
|
---|
53 | <h3>.[page:Vector3 normal]</h3>
|
---|
54 | <div>
|
---|
55 | Face normal.
|
---|
56 | </div>
|
---|
57 |
|
---|
58 | <h3>.[page:Color color]</h3>
|
---|
59 | <div>
|
---|
60 | Face color.
|
---|
61 | </div>
|
---|
62 |
|
---|
63 | <h3>.[page:Array vertexNormals]</h3>
|
---|
64 | <div>
|
---|
65 | Array of 3 vertex normals.
|
---|
66 | </div>
|
---|
67 |
|
---|
68 | <h3>.[page:Array vertexColors]</h3>
|
---|
69 | <div>
|
---|
70 | Array of 3 vertex colors.
|
---|
71 | </div>
|
---|
72 |
|
---|
73 | <h3>.[page:Array vertexTangents]</h3>
|
---|
74 | <div>
|
---|
75 | Array of 3 vertex tangents.
|
---|
76 | </div>
|
---|
77 |
|
---|
78 |
|
---|
79 | <h3>.[page:Integer materialIndex]</h3>
|
---|
80 | <div>
|
---|
81 | Material index (points to [page:MeshFaceMaterial MeshFaceMaterial.materials]).
|
---|
82 | </div>
|
---|
83 |
|
---|
84 | <h3>.[page:Vector3 centroid]</h3>
|
---|
85 | <div>
|
---|
86 | Face centroid.
|
---|
87 | </div>
|
---|
88 |
|
---|
89 | <h2>Methods</h2>
|
---|
90 |
|
---|
91 | <h3>.clone()</h3>
|
---|
92 | <div>
|
---|
93 | Creates a new clone of the Face3 object.
|
---|
94 | </div>
|
---|
95 |
|
---|
96 |
|
---|
97 | <h2>Source</h2>
|
---|
98 |
|
---|
99 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
100 | </body>
|
---|
101 | </html>
|
---|