Octree C++ Class TemplateAn octree is a tree structure for storing sparse 3-D data. What you will find here is source code for the easiest and fastest C++ octree class template around. And it's free. You can find more information on octrees in general from Wikipedia. Code Example
#include "octree.h"
int main()
{
Octree<double> o(4096); /* Create 4096x4096x4096 octree containing doubles. */
o(1,2,3) = 3.1416; /* Put pi in (1,2,3). */
o.erase(1,2,3); /* Erase that node. */
}
Features
DownloadDocumentationThe documentation was generated with Doxygen. LicenseIt's GPL. If you would like something more permissive, contact me. We can probably work something out. Questions?I like to receive email. I read and reply quickly to every single one. Write to me at nomis80@nomis80.org. See my other code snippets! |