mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0028495: The maximal depth of the tree is used implicitly in type 'BVH_PrimitiveSet'
Type 'BVH_PrimitiveSet' was extended by a static constant to access the maximal depth of the tree.
This commit is contained in:
parent
7a280da946
commit
e99816df7f
@ -35,6 +35,7 @@ protected:
|
|||||||
using BVH_Set<T, N>::Box;
|
using BVH_Set<T, N>::Box;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
static const Standard_Integer MaxTreeDepth = 32;
|
||||||
|
|
||||||
//! Creates set of abstract primitives.
|
//! Creates set of abstract primitives.
|
||||||
BVH_PrimitiveSet();
|
BVH_PrimitiveSet();
|
||||||
|
@ -24,7 +24,7 @@ BVH_PrimitiveSet<T, N>::BVH_PrimitiveSet()
|
|||||||
: myBVH (new BVH_Tree<T, N>())
|
: myBVH (new BVH_Tree<T, N>())
|
||||||
{
|
{
|
||||||
// Set default builder - binned SAH split
|
// Set default builder - binned SAH split
|
||||||
myBuilder = new BVH_BinnedBuilder<T, N, 48> (5, 32);
|
myBuilder = new BVH_BinnedBuilder<T, N, 48> (5, MaxTreeDepth);
|
||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user