16 assert( numLeaves > 0 );
Definition MRFunctional.h:15
Vector<T> is indexed by size_t.
Definition MRVector.h:24
Vector< AABBTreeNode< T >, NodeId > AABBTreeNodeVec
Definition MRAABBTreeNode.h:63
int getNumNodes(int numLeaves)
returns the number of not-leaf nodes in the binary tree with given number of leaves
Definition MRAABBTreeMaker.h:14
AABBTreeNodeVec< T > makeAABBTreeNodeVec(const Vector< BoxedLeaf< T > > &boxedLeaves, OnLeafCallback onLeaf)
FunctionRef< void(size_t leafIndex, size_t boxedLeafIndex)> OnLeafCallback
called in parallel for every leaf with its index in the order of the tree and its index in the given ...
Definition MRAABBTreeMaker.h:21
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
a leaf of AABB-tree: the id of an object (e.g. face) with its bounding box
Definition MRAABBTreeNode.h:30