From e99816df7f2820804a5065f552a344bf94ed2d28 Mon Sep 17 00:00:00 2001 From: abk Date: Wed, 1 Mar 2017 14:22:51 +0300 Subject: [PATCH] 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. --- src/BVH/BVH_PrimitiveSet.hxx | 1 + src/BVH/BVH_PrimitiveSet.lxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); } // =======================================================================