@@ -631,7 +631,7 @@ BoxSampler::getValues(ValueT (&data)[N][N][N], const TreeT& inTree, Coord ijk)
631
631
{
632
632
// This algorithm is only defined for sparse grids
633
633
634
- if constexpr (TreeTraits <TreeT>::IsSparse ) {
634
+ if constexpr (isSparseTree <TreeT>() ) {
635
635
data[0 ][0 ][0 ] = inTree.getValue (ijk); // i, j, k
636
636
637
637
ijk[2 ] += 1 ;
@@ -750,7 +750,7 @@ inline bool
750
750
BoxSampler::sample (const TreeT& inTree, const Vec3R& inCoord,
751
751
typename TreeT::ValueType& result)
752
752
{
753
- if constexpr (TreeTraits <TreeT>::IsSparse ) {
753
+ if constexpr (isSparseTree <TreeT>() ) {
754
754
using ValueT = typename TreeT::ValueType;
755
755
756
756
const Vec3i inIdx = local_util::floorVec3 (inCoord);
@@ -765,7 +765,7 @@ BoxSampler::sample(const TreeT& inTree, const Vec3R& inCoord,
765
765
result = BoxSampler::trilinearInterpolation (data, uvw);
766
766
767
767
return hasActiveValues;
768
- } else if constexpr (TreeTraits <TreeT>::IsAdaptive ) {
768
+ } else if constexpr (isAdaptiveTree <TreeT>() ) {
769
769
// As an example, return the background value.
770
770
// This is where the logic that could sample against an adaptive tree would live.
771
771
// Extract the tree from the Tree or ValueAccessor
@@ -783,7 +783,7 @@ template<class TreeT>
783
783
inline typename TreeT::ValueType
784
784
BoxSampler::sample (const TreeT& inTree, const Vec3R& inCoord)
785
785
{
786
- if constexpr (TreeTraits <TreeT>::IsSparse ) {
786
+ if constexpr (isSparseTree <TreeT>() ) {
787
787
788
788
using ValueT = typename TreeT::ValueType;
789
789
@@ -797,7 +797,7 @@ BoxSampler::sample(const TreeT& inTree, const Vec3R& inCoord)
797
797
BoxSampler::getValues (data, inTree, Coord (inIdx));
798
798
799
799
return BoxSampler::trilinearInterpolation (data, uvw);
800
- } else if constexpr (TreeTraits <TreeT>::IsAdaptive ) {
800
+ } else if constexpr (isAdaptiveTree <TreeT>() ) {
801
801
// As an example, return the background value.
802
802
// This is where the logic that could sample against an adaptive tree would live.
803
803
// Extract the tree from the Tree or ValueAccessor
0 commit comments