33 #ifndef OPENVDB_TREE_UTIL_HAS_BEEN_INCLUDED
34 #define OPENVDB_TREE_UTIL_HAS_BEEN_INCLUDED
36 #include <openvdb/math/Math.h>
46 template<
typename ValueType>
49 template <
typename ChildType>
52 return child.isConstant(value, state, tolerance);
63 template<
typename ValueType>
66 template <
typename ChildType>
69 return child.isInactive();
71 static const bool state =
false;
83 template<
typename ValueType>
86 template <
typename ChildType>
89 if (!child.isInactive())
return false;
90 value = child.getFirstValue() < zeroVal<ValueType>() ? -outside : outside;
93 static const bool state =
false;
102 #endif // OPENVDB_TREE_TREE_HAS_BEEN_INCLUDED