@realsee/five 5.0.0-alpha.71 → 5.0.0-alpha.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/{images/icons.png → icons.png} +0 -0
- package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/{images/widgets.png → widgets.png} +0 -0
- package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +22 -522
- package/docs/classes/five.BVH.html +10 -488
- package/docs/classes/five.BVHNode.html +8 -468
- package/docs/classes/five.BVHVector3.html +1 -525
- package/docs/classes/five.Camera.html +11 -323
- package/docs/classes/five.Five.html +269 -2938
- package/docs/classes/five.InternalWebGLRenderer.html +1 -212
- package/docs/classes/five.Model.html +76 -1011
- package/docs/classes/five.NetworkSubscribe.html +50 -564
- package/docs/classes/five.PBMContainer.html +17 -428
- package/docs/classes/five.PBMGroup.html +19 -430
- package/docs/classes/five.PBMMaterial.html +15 -367
- package/docs/classes/five.PBMMesh.html +7 -254
- package/docs/classes/five.Scene.html +3 -263
- package/docs/classes/five.Subscribe.html +55 -599
- package/docs/classes/five.Work.html +1 -348
- package/docs/classes/gltf_loader.GLTFLoader.html +16 -411
- package/docs/classes/gltf_loader.GLTFObject.html +7 -287
- package/docs/classes/line.Line.html +1 -384
- package/docs/classes/line.LineGeometry.html +1 -530
- package/docs/classes/line.LineMaterial.html +1 -306
- package/docs/classes/line.LineSegmentsGeometry.html +1 -477
- package/docs/classes/line.THREE_Line2.html +1 -280
- package/docs/classes/line.THREE_LineSegments2.html +1 -282
- package/docs/classes/react.Store.html +28 -621
- package/docs/classes/server.BVH.html +10 -587
- package/docs/classes/server.BVHNode.html +8 -567
- package/docs/classes/server.BVHVector3.html +1 -624
- package/docs/classes/server.Model.html +62 -840
- package/docs/classes/server.PBMGroup.html +9 -384
- package/docs/classes/server.PBMMesh.html +7 -353
- package/docs/classes/sticker.Sticker.html +31 -470
- package/docs/index.html +166 -458
- package/docs/interfaces/five.AddableObject.html +1 -234
- package/docs/interfaces/five.AnimationFrame.html +1 -243
- package/docs/interfaces/five.BVHIntersect.html +1 -204
- package/docs/interfaces/five.CameraPose.html +1 -232
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -438
- package/docs/interfaces/five.EventCallback.html +370 -2644
- package/docs/interfaces/five.FiveInitArgs.html +93 -723
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -295
- package/docs/interfaces/five.ImageOptions.html +16 -277
- package/docs/interfaces/five.ImageURLOptions.html +1 -260
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -188
- package/docs/interfaces/five.Intersection.html +7 -227
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -366
- package/docs/interfaces/five.ModelEventCallback.html +22 -367
- package/docs/interfaces/five.MovePanoOptions.html +39 -456
- package/docs/interfaces/five.PBMPanoPicture.html +7 -219
- package/docs/interfaces/five.PBMParameters.html +15 -303
- package/docs/interfaces/five.PanoCircleMeshInterface.html +5 -426
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -452
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -365
- package/docs/interfaces/five.Pose.html +35 -270
- package/docs/interfaces/five.Scissor.html +14 -252
- package/docs/interfaces/five.State.html +16 -297
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -180
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -171
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -198
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -213
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -210
- package/docs/interfaces/five.TextureOptions.html +18 -296
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -226
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +27 -439
- package/docs/interfaces/five.WorkCubeImage.html +1 -251
- package/docs/interfaces/five.WorkImage.html +3 -306
- package/docs/interfaces/five.WorkInitial.html +13 -273
- package/docs/interfaces/five.WorkModel.html +3 -239
- package/docs/interfaces/five.WorkObserver.html +3 -323
- package/docs/interfaces/five.WorkTile.html +1 -274
- package/docs/interfaces/five.WorkVideo.html +3 -211
- package/docs/interfaces/gltf_loader.GLTF.html +7 -304
- package/docs/interfaces/react.FiveActionReactCallbacks.html +61 -585
- package/docs/interfaces/react.FiveInjectionTypes.html +154 -1645
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -286
- package/docs/interfaces/server.BVHIntersect.html +1 -303
- package/docs/interfaces/server.Intersection.html +7 -326
- package/docs/interfaces/server.ModelEventCallback.html +18 -427
- package/docs/interfaces/sticker.IntersectionLike.html +8 -223
- package/docs/modules/five.SubscribeMixinType.html +1 -143
- package/docs/modules/five.html +442 -3044
- package/docs/modules/gltf_loader.html +1 -155
- package/docs/modules/line.html +1 -210
- package/docs/modules/react.html +130 -1607
- package/docs/modules/server.html +18 -560
- package/docs/modules/sticker.html +1 -151
- package/docs/modules.html +1 -136
- package/five/index.js +5 -5
- package/gltf-loader/index.js +2 -2
- package/line/index.js +2 -2
- package/package.json +1 -1
- package/react/index.js +2 -2
- package/server/index.js +3 -3
- package/sticker/index.js +2 -2
- package/umd/five.js +1 -1
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
|
@@ -1,488 +1,10 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.71</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="tsd-page-title">
|
|
50
|
-
<div class="container">
|
|
51
|
-
<ul class="tsd-breadcrumb">
|
|
52
|
-
<li>
|
|
53
|
-
<a href="../modules.html">如视 Five SDK - v5.0.0-alpha.71</a>
|
|
54
|
-
</li>
|
|
55
|
-
<li>
|
|
56
|
-
<a href="../modules/five.html">five</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="five.BVH.html">BVH</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class BVH</h1>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</header>
|
|
66
|
-
<div class="container container-main">
|
|
67
|
-
<div class="row">
|
|
68
|
-
<div class="col-8 col-content">
|
|
69
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
70
|
-
<h3>Hierarchy</h3>
|
|
71
|
-
<ul class="tsd-hierarchy">
|
|
72
|
-
<li>
|
|
73
|
-
<span class="target">BVH</span>
|
|
74
|
-
</li>
|
|
75
|
-
</ul>
|
|
76
|
-
</section>
|
|
77
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
78
|
-
<h2>Index</h2>
|
|
79
|
-
<section class="tsd-panel tsd-index-panel">
|
|
80
|
-
<div class="tsd-index-content">
|
|
81
|
-
<section class="tsd-index-section ">
|
|
82
|
-
<h3>Constructors</h3>
|
|
83
|
-
<ul class="tsd-index-list">
|
|
84
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="five.BVH.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
85
|
-
</ul>
|
|
86
|
-
</section>
|
|
87
|
-
<section class="tsd-index-section ">
|
|
88
|
-
<h3>Properties</h3>
|
|
89
|
-
<ul class="tsd-index-list">
|
|
90
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxArray" class="tsd-kind-icon">_bbox<wbr>Array</a></li>
|
|
91
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxHelper" class="tsd-kind-icon">_bbox<wbr>Helper</a></li>
|
|
92
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_maxTrianglesPerNode" class="tsd-kind-icon">_max<wbr>Triangles<wbr>Per<wbr>Node</a></li>
|
|
93
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_nodesToSplit" class="tsd-kind-icon">_nodes<wbr>ToSplit</a></li>
|
|
94
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_rootNode" class="tsd-kind-icon">_root<wbr>Node</a></li>
|
|
95
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_trianglesArray" class="tsd-kind-icon">_triangles<wbr>Array</a></li>
|
|
96
|
-
</ul>
|
|
97
|
-
</section>
|
|
98
|
-
<section class="tsd-index-section ">
|
|
99
|
-
<h3>Methods</h3>
|
|
100
|
-
<ul class="tsd-index-list">
|
|
101
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="five.BVH.html#_splitNode" class="tsd-kind-icon">_split<wbr>Node</a></li>
|
|
102
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="five.BVH.html#calcBoundingBoxes" class="tsd-kind-icon">calc<wbr>Bounding<wbr>Boxes</a></li>
|
|
103
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="five.BVH.html#calcExtents" class="tsd-kind-icon">calc<wbr>Extents</a></li>
|
|
104
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#dispose" class="tsd-kind-icon">dispose</a></li>
|
|
105
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#intersectRay" class="tsd-kind-icon">intersect<wbr>Ray</a></li>
|
|
106
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#splitNode" class="tsd-kind-icon">split<wbr>Node</a></li>
|
|
107
|
-
</ul>
|
|
108
|
-
</section>
|
|
109
|
-
</div>
|
|
110
|
-
</section>
|
|
111
|
-
</section>
|
|
112
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
113
|
-
<h2>Constructors</h2>
|
|
114
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
115
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
116
|
-
<h3>constructor</h3>
|
|
117
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
118
|
-
<li class="tsd-signature tsd-kind-icon">new BVH<span class="tsd-signature-symbol">(</span>trianglesArray<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span>, maxTrianglesPerNode<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="five.BVH.html" class="tsd-signature-type" data-tsd-kind="Class">BVH</a></li>
|
|
119
|
-
</ul>
|
|
120
|
-
<ul class="tsd-descriptions">
|
|
121
|
-
<li class="tsd-description">
|
|
122
|
-
<aside class="tsd-sources">
|
|
123
|
-
<ul>
|
|
124
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:23</li>
|
|
125
|
-
</ul>
|
|
126
|
-
</aside>
|
|
127
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
128
|
-
<ul class="tsd-parameters">
|
|
129
|
-
<li>
|
|
130
|
-
<h5>trianglesArray: <span class="tsd-signature-type">Float32Array</span></h5>
|
|
131
|
-
</li>
|
|
132
|
-
<li>
|
|
133
|
-
<h5>maxTrianglesPerNode: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></h5>
|
|
134
|
-
</li>
|
|
135
|
-
</ul>
|
|
136
|
-
<h4 class="tsd-returns-title">Returns <a href="five.BVH.html" class="tsd-signature-type" data-tsd-kind="Class">BVH</a></h4>
|
|
137
|
-
</li>
|
|
138
|
-
</ul>
|
|
139
|
-
</section>
|
|
140
|
-
</section>
|
|
141
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
142
|
-
<h2>Properties</h2>
|
|
143
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
144
|
-
<a name="_bboxArray" class="tsd-anchor"></a>
|
|
145
|
-
<h3>_bbox<wbr>Array</h3>
|
|
146
|
-
<div class="tsd-signature tsd-kind-icon">_bbox<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div>
|
|
147
|
-
<aside class="tsd-sources">
|
|
148
|
-
<ul>
|
|
149
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:18</li>
|
|
150
|
-
</ul>
|
|
151
|
-
</aside>
|
|
152
|
-
</section>
|
|
153
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
154
|
-
<a name="_bboxHelper" class="tsd-anchor"></a>
|
|
155
|
-
<h3>_bbox<wbr>Helper</h3>
|
|
156
|
-
<div class="tsd-signature tsd-kind-icon">_bbox<wbr>Helper<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div>
|
|
157
|
-
<aside class="tsd-sources">
|
|
158
|
-
<ul>
|
|
159
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:19</li>
|
|
160
|
-
</ul>
|
|
161
|
-
</aside>
|
|
162
|
-
</section>
|
|
163
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
164
|
-
<a name="_maxTrianglesPerNode" class="tsd-anchor"></a>
|
|
165
|
-
<h3>_max<wbr>Triangles<wbr>Per<wbr>Node</h3>
|
|
166
|
-
<div class="tsd-signature tsd-kind-icon">_max<wbr>Triangles<wbr>Per<wbr>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
167
|
-
<aside class="tsd-sources">
|
|
168
|
-
<ul>
|
|
169
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:17</li>
|
|
170
|
-
</ul>
|
|
171
|
-
</aside>
|
|
172
|
-
</section>
|
|
173
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
174
|
-
<a name="_nodesToSplit" class="tsd-anchor"></a>
|
|
175
|
-
<h3>_nodes<wbr>ToSplit</h3>
|
|
176
|
-
<div class="tsd-signature tsd-kind-icon">_nodes<wbr>ToSplit<span class="tsd-signature-symbol">:</span> <a href="five.BVHNode.html" class="tsd-signature-type" data-tsd-kind="Class">BVHNode</a><span class="tsd-signature-symbol">[]</span></div>
|
|
177
|
-
<aside class="tsd-sources">
|
|
178
|
-
<ul>
|
|
179
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:21</li>
|
|
180
|
-
</ul>
|
|
181
|
-
</aside>
|
|
182
|
-
</section>
|
|
183
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
184
|
-
<a name="_rootNode" class="tsd-anchor"></a>
|
|
185
|
-
<h3>_root<wbr>Node</h3>
|
|
186
|
-
<div class="tsd-signature tsd-kind-icon">_root<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="five.BVHNode.html" class="tsd-signature-type" data-tsd-kind="Class">BVHNode</a></div>
|
|
187
|
-
<aside class="tsd-sources">
|
|
188
|
-
<ul>
|
|
189
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:20</li>
|
|
190
|
-
</ul>
|
|
191
|
-
</aside>
|
|
192
|
-
</section>
|
|
193
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
194
|
-
<a name="_trianglesArray" class="tsd-anchor"></a>
|
|
195
|
-
<h3>_triangles<wbr>Array</h3>
|
|
196
|
-
<div class="tsd-signature tsd-kind-icon">_triangles<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div>
|
|
197
|
-
<aside class="tsd-sources">
|
|
198
|
-
<ul>
|
|
199
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:16</li>
|
|
200
|
-
</ul>
|
|
201
|
-
</aside>
|
|
202
|
-
</section>
|
|
203
|
-
</section>
|
|
204
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
205
|
-
<h2>Methods</h2>
|
|
206
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
207
|
-
<a name="_splitNode" class="tsd-anchor"></a>
|
|
208
|
-
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _split<wbr>Node</h3>
|
|
209
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
210
|
-
<li class="tsd-signature tsd-kind-icon">_split<wbr>Node<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
211
|
-
</ul>
|
|
212
|
-
<ul class="tsd-descriptions">
|
|
213
|
-
<li class="tsd-description">
|
|
214
|
-
<aside class="tsd-sources">
|
|
215
|
-
<ul>
|
|
216
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:107</li>
|
|
217
|
-
</ul>
|
|
218
|
-
</aside>
|
|
219
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
220
|
-
<ul class="tsd-parameters">
|
|
221
|
-
<li>
|
|
222
|
-
<h5>node: <span class="tsd-signature-type">any</span></h5>
|
|
223
|
-
</li>
|
|
224
|
-
</ul>
|
|
225
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
226
|
-
</li>
|
|
227
|
-
</ul>
|
|
228
|
-
</section>
|
|
229
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
230
|
-
<a name="calcBoundingBoxes" class="tsd-anchor"></a>
|
|
231
|
-
<h3><span class="tsd-flag ts-flagPrivate">Private</span> calc<wbr>Bounding<wbr>Boxes</h3>
|
|
232
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
233
|
-
<li class="tsd-signature tsd-kind-icon">calc<wbr>Bounding<wbr>Boxes<span class="tsd-signature-symbol">(</span>trianglesArray<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span></li>
|
|
234
|
-
</ul>
|
|
235
|
-
<ul class="tsd-descriptions">
|
|
236
|
-
<li class="tsd-description">
|
|
237
|
-
<aside class="tsd-sources">
|
|
238
|
-
<ul>
|
|
239
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:41</li>
|
|
240
|
-
</ul>
|
|
241
|
-
</aside>
|
|
242
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
243
|
-
<ul class="tsd-parameters">
|
|
244
|
-
<li>
|
|
245
|
-
<h5>trianglesArray: <span class="tsd-signature-type">Float32Array</span></h5>
|
|
246
|
-
</li>
|
|
247
|
-
</ul>
|
|
248
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Float32Array</span></h4>
|
|
249
|
-
</li>
|
|
250
|
-
</ul>
|
|
251
|
-
</section>
|
|
252
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
253
|
-
<a name="calcExtents" class="tsd-anchor"></a>
|
|
254
|
-
<h3><span class="tsd-flag ts-flagPrivate">Private</span> calc<wbr>Extents</h3>
|
|
255
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
256
|
-
<li class="tsd-signature tsd-kind-icon">calc<wbr>Extents<span class="tsd-signature-symbol">(</span>startIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, expandBy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></li>
|
|
257
|
-
</ul>
|
|
258
|
-
<ul class="tsd-descriptions">
|
|
259
|
-
<li class="tsd-description">
|
|
260
|
-
<aside class="tsd-sources">
|
|
261
|
-
<ul>
|
|
262
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:206</li>
|
|
263
|
-
</ul>
|
|
264
|
-
</aside>
|
|
265
|
-
<div class="tsd-comment tsd-typography">
|
|
266
|
-
<div class="lead">
|
|
267
|
-
<p>计算包围盒</p>
|
|
268
|
-
</div>
|
|
269
|
-
</div>
|
|
270
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
271
|
-
<ul class="tsd-parameters">
|
|
272
|
-
<li>
|
|
273
|
-
<h5>startIndex: <span class="tsd-signature-type">number</span></h5>
|
|
274
|
-
<div class="tsd-comment tsd-typography">
|
|
275
|
-
<p>开始的三角形序号</p>
|
|
276
|
-
</div>
|
|
277
|
-
</li>
|
|
278
|
-
<li>
|
|
279
|
-
<h5>endIndex: <span class="tsd-signature-type">number</span></h5>
|
|
280
|
-
<div class="tsd-comment tsd-typography">
|
|
281
|
-
<p>结束的三角形序号</p>
|
|
282
|
-
</div>
|
|
283
|
-
</li>
|
|
284
|
-
<li>
|
|
285
|
-
<h5>expandBy: <span class="tsd-signature-type">number</span></h5>
|
|
286
|
-
<div class="tsd-comment tsd-typography">
|
|
287
|
-
<p>外面扩展</p>
|
|
288
|
-
</div>
|
|
289
|
-
</li>
|
|
290
|
-
</ul>
|
|
291
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h4>
|
|
292
|
-
</li>
|
|
293
|
-
</ul>
|
|
294
|
-
</section>
|
|
295
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
296
|
-
<a name="dispose" class="tsd-anchor"></a>
|
|
297
|
-
<h3>dispose</h3>
|
|
298
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
299
|
-
<li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
300
|
-
</ul>
|
|
301
|
-
<ul class="tsd-descriptions">
|
|
302
|
-
<li class="tsd-description">
|
|
303
|
-
<aside class="tsd-sources">
|
|
304
|
-
<ul>
|
|
305
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:314</li>
|
|
306
|
-
</ul>
|
|
307
|
-
</aside>
|
|
308
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
309
|
-
</li>
|
|
310
|
-
</ul>
|
|
311
|
-
</section>
|
|
312
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
313
|
-
<a name="intersectRay" class="tsd-anchor"></a>
|
|
314
|
-
<h3>intersect<wbr>Ray</h3>
|
|
315
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
316
|
-
<li class="tsd-signature tsd-kind-icon">intersect<wbr>Ray<span class="tsd-signature-symbol">(</span>rayOrigin<span class="tsd-signature-symbol">: </span><a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a>, rayDirection<span class="tsd-signature-symbol">: </span><a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a>, backfaceCulling<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/five.BVHIntersect.html" class="tsd-signature-type" data-tsd-kind="Interface">BVHIntersect</a><span class="tsd-signature-symbol">[]</span></li>
|
|
317
|
-
</ul>
|
|
318
|
-
<ul class="tsd-descriptions">
|
|
319
|
-
<li class="tsd-description">
|
|
320
|
-
<aside class="tsd-sources">
|
|
321
|
-
<ul>
|
|
322
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:260</li>
|
|
323
|
-
</ul>
|
|
324
|
-
</aside>
|
|
325
|
-
<div class="tsd-comment tsd-typography">
|
|
326
|
-
<div class="lead">
|
|
327
|
-
<p>计算射线与三角形的碰撞</p>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
331
|
-
<ul class="tsd-parameters">
|
|
332
|
-
<li>
|
|
333
|
-
<h5>rayOrigin: <a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a></h5>
|
|
334
|
-
<div class="tsd-comment tsd-typography">
|
|
335
|
-
<p>射线的原点坐标</p>
|
|
336
|
-
</div>
|
|
337
|
-
</li>
|
|
338
|
-
<li>
|
|
339
|
-
<h5>rayDirection: <a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a></h5>
|
|
340
|
-
<div class="tsd-comment tsd-typography">
|
|
341
|
-
<p>设想的方向向量</p>
|
|
342
|
-
</div>
|
|
343
|
-
</li>
|
|
344
|
-
<li>
|
|
345
|
-
<h5>backfaceCulling: <span class="tsd-signature-type">boolean</span></h5>
|
|
346
|
-
<div class="tsd-comment tsd-typography">
|
|
347
|
-
<p>是否背面剔除</p>
|
|
348
|
-
</div>
|
|
349
|
-
</li>
|
|
350
|
-
</ul>
|
|
351
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/five.BVHIntersect.html" class="tsd-signature-type" data-tsd-kind="Interface">BVHIntersect</a><span class="tsd-signature-symbol">[]</span></h4>
|
|
352
|
-
<p>碰撞焦点数组</p>
|
|
353
|
-
</li>
|
|
354
|
-
</ul>
|
|
355
|
-
</section>
|
|
356
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
357
|
-
<a name="splitNode" class="tsd-anchor"></a>
|
|
358
|
-
<h3>split<wbr>Node</h3>
|
|
359
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
360
|
-
<li class="tsd-signature tsd-kind-icon">split<wbr>Node<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
361
|
-
</ul>
|
|
362
|
-
<ul class="tsd-descriptions">
|
|
363
|
-
<li class="tsd-description">
|
|
364
|
-
<aside class="tsd-sources">
|
|
365
|
-
<ul>
|
|
366
|
-
<li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:98</li>
|
|
367
|
-
</ul>
|
|
368
|
-
</aside>
|
|
369
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
370
|
-
</li>
|
|
371
|
-
</ul>
|
|
372
|
-
</section>
|
|
373
|
-
</section>
|
|
374
|
-
</div>
|
|
375
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
376
|
-
<nav class="tsd-navigation primary">
|
|
377
|
-
<ul>
|
|
378
|
-
<li class=" ">
|
|
379
|
-
<a href="../modules.html">Modules</a>
|
|
380
|
-
</li>
|
|
381
|
-
<li class="current tsd-kind-module">
|
|
382
|
-
<a href="../modules/five.html">five</a>
|
|
383
|
-
</li>
|
|
384
|
-
<li class=" tsd-kind-module">
|
|
385
|
-
<a href="../modules/gltf_loader.html">gltf-<wbr>loader</a>
|
|
386
|
-
</li>
|
|
387
|
-
<li class=" tsd-kind-module">
|
|
388
|
-
<a href="../modules/line.html">line</a>
|
|
389
|
-
</li>
|
|
390
|
-
<li class=" tsd-kind-module">
|
|
391
|
-
<a href="../modules/react.html">react</a>
|
|
392
|
-
</li>
|
|
393
|
-
<li class=" tsd-kind-module">
|
|
394
|
-
<a href="../modules/server.html">server</a>
|
|
395
|
-
</li>
|
|
396
|
-
<li class=" tsd-kind-module">
|
|
397
|
-
<a href="../modules/sticker.html">sticker</a>
|
|
398
|
-
</li>
|
|
399
|
-
</ul>
|
|
400
|
-
</nav>
|
|
401
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
402
|
-
<ul class="before-current">
|
|
403
|
-
</ul>
|
|
404
|
-
<ul class="current">
|
|
405
|
-
<li class="current tsd-kind-class tsd-parent-kind-module">
|
|
406
|
-
<a href="five.BVH.html" class="tsd-kind-icon">BVH</a>
|
|
407
|
-
<ul>
|
|
408
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
409
|
-
<a href="five.BVH.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
410
|
-
</li>
|
|
411
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
412
|
-
<a href="five.BVH.html#_bboxArray" class="tsd-kind-icon">_bbox<wbr>Array</a>
|
|
413
|
-
</li>
|
|
414
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
415
|
-
<a href="five.BVH.html#_bboxHelper" class="tsd-kind-icon">_bbox<wbr>Helper</a>
|
|
416
|
-
</li>
|
|
417
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
418
|
-
<a href="five.BVH.html#_maxTrianglesPerNode" class="tsd-kind-icon">_max<wbr>Triangles<wbr>Per<wbr>Node</a>
|
|
419
|
-
</li>
|
|
420
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
421
|
-
<a href="five.BVH.html#_nodesToSplit" class="tsd-kind-icon">_nodes<wbr>ToSplit</a>
|
|
422
|
-
</li>
|
|
423
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
424
|
-
<a href="five.BVH.html#_rootNode" class="tsd-kind-icon">_root<wbr>Node</a>
|
|
425
|
-
</li>
|
|
426
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
427
|
-
<a href="five.BVH.html#_trianglesArray" class="tsd-kind-icon">_triangles<wbr>Array</a>
|
|
428
|
-
</li>
|
|
429
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
430
|
-
<a href="five.BVH.html#_splitNode" class="tsd-kind-icon">_split<wbr>Node</a>
|
|
431
|
-
</li>
|
|
432
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
433
|
-
<a href="five.BVH.html#calcBoundingBoxes" class="tsd-kind-icon">calc<wbr>Bounding<wbr>Boxes</a>
|
|
434
|
-
</li>
|
|
435
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
436
|
-
<a href="five.BVH.html#calcExtents" class="tsd-kind-icon">calc<wbr>Extents</a>
|
|
437
|
-
</li>
|
|
438
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
439
|
-
<a href="five.BVH.html#dispose" class="tsd-kind-icon">dispose</a>
|
|
440
|
-
</li>
|
|
441
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
442
|
-
<a href="five.BVH.html#intersectRay" class="tsd-kind-icon">intersect<wbr>Ray</a>
|
|
443
|
-
</li>
|
|
444
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
445
|
-
<a href="five.BVH.html#splitNode" class="tsd-kind-icon">split<wbr>Node</a>
|
|
446
|
-
</li>
|
|
447
|
-
</ul>
|
|
448
|
-
</li>
|
|
449
|
-
</ul>
|
|
450
|
-
<ul class="after-current">
|
|
451
|
-
</ul>
|
|
452
|
-
</nav>
|
|
453
|
-
</div>
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
456
|
-
<footer>
|
|
457
|
-
<div class="container">
|
|
458
|
-
<h2>Legend</h2>
|
|
459
|
-
<div class="tsd-legend-group">
|
|
460
|
-
<ul class="tsd-legend">
|
|
461
|
-
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
|
|
462
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
463
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
464
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
465
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
466
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
467
|
-
</ul>
|
|
468
|
-
<ul class="tsd-legend">
|
|
469
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
470
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
471
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
472
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
473
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
474
|
-
</ul>
|
|
475
|
-
<ul class="tsd-legend">
|
|
476
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
477
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
478
|
-
</ul>
|
|
479
|
-
<ul class="tsd-legend">
|
|
480
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
|
481
|
-
</ul>
|
|
482
|
-
</div>
|
|
483
|
-
</div>
|
|
484
|
-
</footer>
|
|
485
|
-
<div class="overlay"></div>
|
|
486
|
-
<script src="../assets/js/main.js"></script>
|
|
487
|
-
</body>
|
|
488
|
-
</html>
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>BVH | 如视 Five SDK - v5.0.0-alpha.71</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.71"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.71</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.71</a></li><li><a href="../modules/five.html">five</a></li><li><a href="five.BVH.html">BVH</a></li></ul><h1>Class BVH</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">BVH</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="five.BVH.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxArray" class="tsd-kind-icon">_bbox<wbr/>Array</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxHelper" class="tsd-kind-icon">_bbox<wbr/>Helper</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_maxTrianglesPerNode" class="tsd-kind-icon">_max<wbr/>Triangles<wbr/>Per<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_nodesToSplit" class="tsd-kind-icon">_nodes<wbr/>To<wbr/>Split</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_rootNode" class="tsd-kind-icon">_root<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_trianglesArray" class="tsd-kind-icon">_triangles<wbr/>Array</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#intersectRay" class="tsd-kind-icon">intersect<wbr/>Ray</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#splitNode" class="tsd-kind-icon">split<wbr/>Node</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new BVH<span class="tsd-signature-symbol">(</span>trianglesArray<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span>, maxTrianglesPerNode<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="five.BVH.html" class="tsd-signature-type" data-tsd-kind="Class">BVH</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:23</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>trianglesArray: <span class="tsd-signature-type">Float32Array</span></h5></li><li><h5>maxTrianglesPerNode: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="five.BVH.html" class="tsd-signature-type" data-tsd-kind="Class">BVH</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_bboxArray" class="tsd-anchor"></a><h3>_bbox<wbr/>Array</h3><div class="tsd-signature tsd-kind-icon">_bbox<wbr/>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:18</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_bboxHelper" class="tsd-anchor"></a><h3>_bbox<wbr/>Helper</h3><div class="tsd-signature tsd-kind-icon">_bbox<wbr/>Helper<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:19</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_maxTrianglesPerNode" class="tsd-anchor"></a><h3>_max<wbr/>Triangles<wbr/>Per<wbr/>Node</h3><div class="tsd-signature tsd-kind-icon">_max<wbr/>Triangles<wbr/>Per<wbr/>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:17</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_nodesToSplit" class="tsd-anchor"></a><h3>_nodes<wbr/>To<wbr/>Split</h3><div class="tsd-signature tsd-kind-icon">_nodes<wbr/>To<wbr/>Split<span class="tsd-signature-symbol">:</span> <a href="five.BVHNode.html" class="tsd-signature-type" data-tsd-kind="Class">BVHNode</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:21</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_rootNode" class="tsd-anchor"></a><h3>_root<wbr/>Node</h3><div class="tsd-signature tsd-kind-icon">_root<wbr/>Node<span class="tsd-signature-symbol">:</span> <a href="five.BVHNode.html" class="tsd-signature-type" data-tsd-kind="Class">BVHNode</a></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:20</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_trianglesArray" class="tsd-anchor"></a><h3>_triangles<wbr/>Array</h3><div class="tsd-signature tsd-kind-icon">_triangles<wbr/>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:16</li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="dispose" class="tsd-anchor"></a><h3>dispose</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:314</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="intersectRay" class="tsd-anchor"></a><h3>intersect<wbr/>Ray</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">intersect<wbr/>Ray<span class="tsd-signature-symbol">(</span>rayOrigin<span class="tsd-signature-symbol">: </span><a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a>, rayDirection<span class="tsd-signature-symbol">: </span><a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a>, backfaceCulling<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/five.BVHIntersect.html" class="tsd-signature-type" data-tsd-kind="Interface">BVHIntersect</a><span class="tsd-signature-symbol">[]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:260</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>计算射线与三角形的碰撞</p>
|
|
3
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>rayOrigin: <a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>射线的原点坐标</p>
|
|
5
|
+
</div></div></li><li><h5>rayDirection: <a href="five.BVHVector3.html" class="tsd-signature-type" data-tsd-kind="Class">BVHVector3</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>设想的方向向量</p>
|
|
7
|
+
</div></div></li><li><h5>backfaceCulling: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
+
<p>是否背面剔除</p>
|
|
9
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../interfaces/five.BVHIntersect.html" class="tsd-signature-type" data-tsd-kind="Interface">BVHIntersect</a><span class="tsd-signature-symbol">[]</span></h4><div><p>碰撞焦点数组</p>
|
|
10
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="splitNode" class="tsd-anchor"></a><h3>split<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">split<wbr/>Node<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/tools/bvhtree/index.ts:98</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class="current tsd-kind-module"><a href="../modules/five.html">five</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-module"><a href="../modules/five.SubscribeMixinType.html">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/server.html">server</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="five.BVH.html" class="tsd-kind-icon">BVH</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="five.BVH.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxArray" class="tsd-kind-icon">_bbox<wbr/>Array</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_bboxHelper" class="tsd-kind-icon">_bbox<wbr/>Helper</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_maxTrianglesPerNode" class="tsd-kind-icon">_max<wbr/>Triangles<wbr/>Per<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_nodesToSplit" class="tsd-kind-icon">_nodes<wbr/>To<wbr/>Split</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_rootNode" class="tsd-kind-icon">_root<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="five.BVH.html#_trianglesArray" class="tsd-kind-icon">_triangles<wbr/>Array</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#intersectRay" class="tsd-kind-icon">intersect<wbr/>Ray</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="five.BVH.html#splitNode" class="tsd-kind-icon">split<wbr/>Node</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|