BuildOctree

Version 1.0.0.0 (4.12 KB) by David
This file has a fix to a bug found in my previous submission under the same file name.
837 Downloads
Updated 21 May 2012

View License

Build an Octree representation of a set of (x,y,z) points in space. The function is called,

Octree = BuildOctree(x,y,z,MinCubeSide)

where,

[x_i, y_i, z_i], i = 1:N define points in space

and

MinCubeSide is the side length of the smallest cube to be used in the discretization. This will determine the number of levels of the tree.

The output structure Octree will contain the number of children, group center coordinate, cube side length, and nearest touching neighbors for each group at each level of the tree. The Octree is determined using a few, very simple equations.

Cite As

David (2024). BuildOctree (https://www.mathworks.com/matlabcentral/fileexchange/36782-buildoctree), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0