supereight
Loading...
Searching...
No Matches
Namespaces | Functions
octant_util.hpp File Reference
#include <se/map/octant/octant.hpp>
#include "impl/octant_util_impl.hpp"
Include dependency graph for octant_util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  se
 Helper wrapper to allocate and de-allocate octants in the octree.
 
namespace  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.
 
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.
 
constexpr int se::octantops::size_to_scale (const int octant_size)
 Return the octree scale corresponding to octant_size in voxels.
 
constexpr int se::octantops::scale_to_size (const int octant_scale)
 Return the octant size in voxels corresponding to octant_scale.
 
template<typename OctreeT >
int se::octantops::octant_to_size (const se::OctantBase *octant_ptr)
 Get the octant's size.
 
template<typename OctreeT >
int se::octantops::octant_to_scale (const se::OctantBase *octant_ptr)
 Get the octant's scale.
 
template<typename OctreeT >
se::key_t se::octantops::octant_to_key (const se::OctantBase *octant_ptr)
 Get the octant's key.