forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFace3.html
More file actions
92 lines (70 loc) · 1.79 KB
/
Face3.html
File metadata and controls
92 lines (70 loc) · 1.79 KB
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
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../" />
<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>[property:Integer a]</h3>
<div>
Vertex A index.
</div>
<h3>[property:Integer b]</h3>
<div>
Vertex B index.
</div>
<h3>[property:Integer c]</h3>
<div>
Vertex C index.
</div>
<h3>[property:Vector3 normal]</h3>
<div>
Face normal.
</div>
<h3>[property:Color color]</h3>
<div>
Face color.
</div>
<h3>[property:Array vertexNormals]</h3>
<div>
Array of 3 vertex normals.
</div>
<h3>[property:Array vertexColors]</h3>
<div>
Array of 3 vertex colors.
</div>
<h3>[property:Integer materialIndex]</h3>
<div>
Material index (points to [page:MultiMaterial MultiMaterial.materials]).
</div>
<h2>Methods</h2>
<h3>[method:Face3 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>