25 assert( numLeaves > 0 );
26 return 2 * numLeaves - 1;
std::vector<V>-like container that is 1) resized without initialization of its elements,...
Definition MRBuffer.h:54
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
AABBTreeNodeVec< T > makeAABBTreeNodeVec(Buffer< BoxedLeaf< T > > boxedLeaves)
int getNumNodes(int numLeaves)
returns the number of nodes in the binary tree with given number of leaves
Definition MRAABBTreeMaker.h:23
Definition MRCameraOrientationPlugin.h:8
constexpr NoInit noInit
Definition MRMesh/MRMeshFwd.h:57
Definition MRAABBTreeMaker.h:14
BoxedLeaf() noexcept=default
T::BoxT box
Definition MRAABBTreeMaker.h:16
T::LeafId leafId
Definition MRAABBTreeMaker.h:15
Definition MRMesh/MRMeshFwd.h:56