supereight
Loading...
Searching...
No Matches
Functions
se::allocator::detail Namespace Reference

Functions

template<typename OctreeT >
bool allocate_key (const se::key_t key, OctreeT &octree, se::OctantBase *base_parent_ptr, se::OctantBase *&allocated_octant)
 Allocate a given key in the octree.
 

Function Documentation

◆ allocate_key()

template<typename OctreeT >
bool se::allocator::detail::allocate_key ( const se::key_t  key,
OctreeT octree,
se::OctantBase base_parent_ptr,
se::OctantBase *&  allocated_octant 
)
inline

Allocate a given key in the octree.

Warning
Initialises each child with it's parents value. I.e. default value for TSDF but might differ for occupancy.
Template Parameters
OctreeT
Parameters
[in]keyThe key to be allocated
[in]octreeThe octree to allocate the key in
[in]base_parent_ptrThe base pointer to start the octree traversal from (e.g. octree.getRoot())
[in]allocated_octantThe pointer to the allocated octant
Returns
True if the octant has been allocated, false if it already was