Description
class Octree
Constructor
new Octree(creationFunc, maxBlockCapacity, maxDepth)
Parameters
|
Name |
Type |
Description |
|
creationFunc |
|
entry |
T |
|
|
block |
OctreeBlock<T> |
|
|
optional | maxBlockCapacity | number |
Members
maxDepth : number
dynamicContent : T[]
Parameters
static CreationFuncForSubMeshes : (entry: SubMesh, block: OctreeBlock<SubMesh>) => void
Parameters
Methods
update(worldMin, worldMax, entries) → void
Parameters
addMesh(entry) → void
Parameters
|
Name |
Type |
Description |
|
entry |
T |
|
select(frustumPlanes, allowDuplicate) → SmartArray<T>
Parameters
|
Name |
Type |
Description |
|
frustumPlanes |
Plane[] |
|
optional |
allowDuplicate |
boolean |
|
intersects(sphereCenter, sphereRadius, allowDuplicate) → SmartArray<T>
Parameters
|
Name |
Type |
Description |
|
sphereCenter |
Vector3 |
|
|
sphereRadius |
number |
|
optional |
allowDuplicate |
boolean |
|
intersectsRay(ray) → SmartArray<T>
Parameters
|
Name |
Type |
Description |
|
ray |
Ray |
|