Octree Class
Item Index
Methods
Methods
aabbQuery
(
Array
-
aabb
-
result
Get all data, potentially within an AABB
Parameters:
-
aabb
AABB -
result
Array
Returns:
Array:
The "result" object
insert
(
Boolean
-
aabb
-
elementData
Insert data into this node
Parameters:
-
aabb
AABB -
elementData
Object
Returns:
Boolean:
True if successful, otherwise false
rayQuery
(
Array
-
ray
-
treeTransform
-
result
Get all data, potentially intersected by a ray.
Returns:
Array:
The "result" object
removeEmptyNodes
()
subdivide
()
Create 8 equally sized children nodes and put them in the .children array.
Properties
children
Array
Children to this node
data
Array
Contained data at the current node level.
maxDepth
Number
Maximum subdivision depth