Type 'BVH_PrimitiveSet' was extended by a static constant to access the maximal depth of the tree.
using BVH_Set<T, N>::Box;
public:
+ static const Standard_Integer MaxTreeDepth = 32;
//! Creates set of abstract primitives.
BVH_PrimitiveSet();
: myBVH (new BVH_Tree<T, N>())
{
// Set default builder - binned SAH split
- myBuilder = new BVH_BinnedBuilder<T, N, 48> (5, 32);
+ myBuilder = new BVH_BinnedBuilder<T, N, 48> (5, MaxTreeDepth);
}
// =======================================================================