forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeometryUtils.html
More file actions
85 lines (56 loc) · 1.99 KB
/
Copy pathGeometryUtils.html
File metadata and controls
85 lines (56 loc) · 1.99 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
<!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">Contains handy functions geometry manipulations.</div>
<h2>Methods</h2>
<h3> .merge( [page:Geometry geometry1] , [page:Geometry geometry2], [page:Integer materialIndexOffset] )</h3>
<div>
geometry1 — Parent geomentry element <br />
geometry2 — Geometry that need to be added in parent <br />
materialIndexOffset — Offset applied to the materialIndex of all the new faces in the merged geometry. Default : 0 <br />
</div>
<h3> .randomPointInTriangle( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC])</h3>
<div>
VectorA — Vector <br />
VectorB — Vector <br />
VectorC — Vector <br />
returns [page:Int Point]
</div>
<h3> .randomPointInFace( [page:face Face] , [page:geometry Geometry] , [page:Boolean useCachedAreas])</h3>
<div>
Face — Face id<br />
Geometry — Geometry that contains the Face <br />
useCachedAreas — Flag to use cached areas. Default : False <br />
returns [page:Int Point]
</div>
<h3> .randomPointsInGeometry( [page:geometry Geometry] , [page:Integer Points])</h3>
<div>
Geometry — Geometry <br />
returns [page:Int Point]
</div>
<h3> .triangleArea ( [page:Vector VectorA] , [page:Vector VectorB] , [page:Vector VectorC]) </h3>
<div>
VectorA — Vector <br />
VectorB — Vector <br />
VectorC — Vector <br />
returns [page:Int Area]
</div>
<h3> .center ( [page:geometry Geometry] ) </h3>
<div>
Geometry — Geometry to Center position
</div>
<h3> .triangulateQuads ( [page:geometry Geometry] ) </h3>
<div>
Geometry — Geometry to triangulate Quads <br />
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>