supereight
|
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::SmallToLarge > | se::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::LargeToSmall > | se::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. | |