supereight
Namespaces | Functions
octant_util.hpp File Reference
#include "key_util.hpp"
#include "se/common/math_util.hpp"
#include "se/map/octant/octant.hpp"
#include "impl/octant_util_impl.hpp"

Go to the source code of this file.

Namespaces

 se
 Helper wrapper to allocate and de-allocate octants in the octree.
 
 se::octantops
 

Functions

template<typename BlockT , se::Sort SortT = se::Sort::SmallToLarge>
std::enable_if_t< SortT==se::Sort::SmallToLargese::octantops::sort_blocks (std::vector< se::OctantBase *> &block_ptrs)
 Sort a vector of blocks according to its morton code from small to large. More...
 
template<typename BlockT , se::Sort SortT>
std::enable_if_t< SortT==se::Sort::LargeToSmallse::octantops::sort_blocks (std::vector< se::OctantBase *> &block_ptrs)
 Sort a vector of blocks according to its morton code from large to small. More...
 
int se::octantops::size_to_scale (const int octant_size)
 Convert the size of an octant in [voxel] to its scale in the octree. More...
 
int se::octantops::scale_to_size (const int octant_scale)
 Convert the scale of a octant to its size in [voxel]. More...
 
template<typename OctreeT >
int se::octantops::octant_to_size (const se::OctantBase *octant_ptr)
 Get the octant's size. More...
 
template<typename OctreeT >
int se::octantops::octant_to_scale (const se::OctantBase *octant_ptr)
 Get the octant's scale. More...
 
template<typename OctreeT >
se::key_t se::octantops::octant_to_key (const se::OctantBase *octant_ptr)
 Get the octant's key. More...