forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFace3.html
81 lines (59 loc) · 1.41 KB
/
Face3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<h1>[name]</h1>
<div class="desc">
Triangle face.
</div>
<h2>Example</h2>
<code>var face = new THREE.Face3( 0, 1, 2, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 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 vertexTangets]</h3>
<div>
Array of 3 vertex tangets.
</div>
<h3>.[page:Integer materialIndex]</h3>
<div>
Material index (points to [page:Geometry Geometry.materials]).
</div>
<h3>.[page:Vector3 centroid]</h3>
<div>
Face centroid.
</div>
<h2>Source</h2>
<a href="https://github.com/mrdoob/three.js/blob/master/src/[path].js" target="_blank">src/[path].js</a>