Clone this wiki locally
Creates an Octree.
size: Edge length of initial bounding box.
max_depth: Maximum depth of the octree.
root: An OctreeNode to be the root node (optional).
Empties an octree of all child nodes and references.
Removes node from an octree.
node: Node to remove.
Test if point lies within bounding box.
Get useful debugging info about an octree.
var octree, scene; // ... octree = new CubicVR.Octree(400, 6); scene = new CubicVR.Scene(canvas.width, canvas.height, 40, 0.1, 200, octree);