TOPICS
Search

Octree


An octree is a rooted tree that represents a three-dimensional region by recursively subdividing it into eight congruent, axis-aligned cuboids, usually cubes (Meagher 1982, Samet 1990). Each internal node represents a spatial cell and has eight children, one for each octant of the cell. A tree leaf represents a cell that is not subdivided further.

If the root cell is a cube of side length L, then a cell at depth k has side length L/2^k and volume L^3/8^k. Uniform subdivision through depth k produces 8^k leaf cells. In an adaptive octree, only selected cells are subdivided, giving a nonuniform mesh with fine resolution in selected regions and coarse resolution elsewhere.

Octrees support efficient spatial queries and locally refined meshes because large uniform regions can be stored at shallow depth while detailed regions are represented by deeper branches. The two-dimensional analogue is a quadtree; more generally, recursive subdivision of a d-dimensional rectangular region into 2^d congruent children gives a 2^d-ary spatial tree.


See also

Cube, Mesh, Octant, Quadtree, Rooted Tree, Tree, Tree Leaf

Explore with Wolfram|Alpha

References

Meagher, D. "Geometric Modeling Using Octree Encoding." Comput. Graph. Image Process. 19, 129-147, 1982. https://doi.org/10.1016/0146-664X(82)90104-6.Samet, H. The Design and Analysis of Spatial Data Structures. Reading, MA: Addison-Wesley, 1990.

Cite this as:

Weisstein, Eric W. "Octree." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Octree.html

Subject classifications