From: abk Date: Wed, 1 Mar 2017 11:22:51 +0000 (+0300) Subject: 0028495: The maximal depth of the tree is used implicitly in type 'BVH_PrimitiveSet' X-Git-Tag: V7_2_0_beta~225 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e99816df7f2820804a5065f552a344bf94ed2d28;p=occt-copy.git 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. --- diff --git a/src/BVH/BVH_PrimitiveSet.hxx b/src/BVH/BVH_PrimitiveSet.hxx index 93b08a2553..265b402e90 100644 --- a/src/BVH/BVH_PrimitiveSet.hxx +++ b/src/BVH/BVH_PrimitiveSet.hxx @@ -35,6 +35,7 @@ protected: using BVH_Set::Box; public: + static const Standard_Integer MaxTreeDepth = 32; //! Creates set of abstract primitives. BVH_PrimitiveSet(); diff --git a/src/BVH/BVH_PrimitiveSet.lxx b/src/BVH/BVH_PrimitiveSet.lxx index a2c5f701e6..00231a635a 100644 --- a/src/BVH/BVH_PrimitiveSet.lxx +++ b/src/BVH/BVH_PrimitiveSet.lxx @@ -24,7 +24,7 @@ BVH_PrimitiveSet::BVH_PrimitiveSet() : myBVH (new BVH_Tree()) { // Set default builder - binned SAH split - myBuilder = new BVH_BinnedBuilder (5, 32); + myBuilder = new BVH_BinnedBuilder (5, MaxTreeDepth); } // =======================================================================