Overview
An Octree organizes points, volumes, or objects in a hierarchy of 3D boxes, refining crowded or detailed areas.
Indexes 3D space by recursively subdividing regions into eight octants.
Compact metadata for implementation and discovery.
An Octree organizes points, volumes, or objects in a hierarchy of 3D boxes, refining crowded or detailed areas.
Quick facts
Runtime and memory behavior at a glance.
Best
O(log n)
Average
O(log n) average query
Worst
O(n)
Space
O(n)
Show a cube subdividing into eight smaller cubes around dense 3D points.
Loose octrees are often used for moving objects that cross cell boundaries.
What each reference supports for this entry.
Data-structures reference for octrees, three-dimensional recursive subdivision, and spatial lookup.
Good next jumps from the relationship graph, ranked for useful discovery.
Octrees generalize quadtree-style recursive spatial subdivision from two dimensions to three.