@@ -631,7 +631,7 @@ BoxSampler::getValues(ValueT (&data)[N][N][N], const TreeT& inTree, Coord ijk)
631631{
632632 // This algorithm is only defined for sparse grids
633633
634- if constexpr (TreeTraits <TreeT>::IsSparse ) {
634+ if constexpr (isSparseTree <TreeT>() ) {
635635 data[0 ][0 ][0 ] = inTree.getValue (ijk); // i, j, k
636636
637637 ijk[2 ] += 1 ;
@@ -750,7 +750,7 @@ inline bool
750750BoxSampler::sample (const TreeT& inTree, const Vec3R& inCoord,
751751 typename TreeT::ValueType& result)
752752{
753- if constexpr (TreeTraits <TreeT>::IsSparse ) {
753+ if constexpr (isSparseTree <TreeT>() ) {
754754 using ValueT = typename TreeT::ValueType;
755755
756756 const Vec3i inIdx = local_util::floorVec3 (inCoord);
@@ -765,7 +765,7 @@ BoxSampler::sample(const TreeT& inTree, const Vec3R& inCoord,
765765 result = BoxSampler::trilinearInterpolation (data, uvw);
766766
767767 return hasActiveValues;
768- } else if constexpr (TreeTraits <TreeT>::IsAdaptive ) {
768+ } else if constexpr (isAdaptiveTree <TreeT>() ) {
769769 // As an example, return the background value.
770770 // This is where the logic that could sample against an adaptive tree would live.
771771 // Extract the tree from the Tree or ValueAccessor
@@ -783,7 +783,7 @@ template<class TreeT>
783783inline typename TreeT::ValueType
784784BoxSampler::sample (const TreeT& inTree, const Vec3R& inCoord)
785785{
786- if constexpr (TreeTraits <TreeT>::IsSparse ) {
786+ if constexpr (isSparseTree <TreeT>() ) {
787787
788788 using ValueT = typename TreeT::ValueType;
789789
@@ -797,7 +797,7 @@ BoxSampler::sample(const TreeT& inTree, const Vec3R& inCoord)
797797 BoxSampler::getValues (data, inTree, Coord (inIdx));
798798
799799 return BoxSampler::trilinearInterpolation (data, uvw);
800- } else if constexpr (TreeTraits <TreeT>::IsAdaptive ) {
800+ } else if constexpr (isAdaptiveTree <TreeT>() ) {
801801 // As an example, return the background value.
802802 // This is where the logic that could sample against an adaptive tree would live.
803803 // Extract the tree from the Tree or ValueAccessor
0 commit comments