Search
Preparing search index...
The search index is not available
如视 Five SDK - v5.0.0-alpha.106
Options
All
Public
Public/Protected
All
Inherited
Menu
如视 Five SDK - v5.0.0-alpha.106
five
BVH
Class BVH
Hierarchy
BVH
Index
Constructors
constructor
Properties
offset
Array
root
Node
triangles
Array
Methods
create
dispose
intersect
Ray
split
Node
Constructors
constructor
new BVH
(
)
:
BVH
Returns
BVH
Properties
Optional
offset
Array
offset
Array
?:
Uint32Array
Optional
root
Node
root
Node
?:
BVHNode
Optional
triangles
Array
triangles
Array
?:
Float32Array
Methods
create
create
(
trianglesArray
:
Float32Array
)
:
BVH
Parameters
trianglesArray:
Float32Array
Returns
BVH
dispose
dispose
(
)
:
void
Returns
void
intersect
Ray
intersect
Ray
(
rayOrigin
:
BVHVector3
, rayDirection
:
BVHVector3
, backfaceCulling
:
boolean
)
:
BVHIntersect
[]
计算射线与三角形的碰撞
Parameters
rayOrigin:
BVHVector3
射线的原点坐标
rayDirection:
BVHVector3
设想的方向向量
backfaceCulling:
boolean
是否背面剔除
Returns
BVHIntersect
[]
碰撞焦点数组
split
Node
split
Node
(
maxTrianglesPerNode
:
number
)
:
BVH
Parameters
maxTrianglesPerNode:
number
Returns
BVH
Modules
five
Subscribe
Mixin
Type
gltf-
loader
line
react
server
sticker
BVH
constructor
offset
Array
root
Node
triangles
Array
create
dispose
intersect
Ray
split
Node
计算射线与三角形的碰撞