|
| CheckNormGrad (const GridT &grid, const ValueType &_min, const ValueType &_max) |
| Constructor taking a grid and a range to be tested against.
|
|
| CheckNormGrad (const CheckNormGrad &other) |
|
bool | operator() (const ValueType &v) const |
| Return true if the value is smaller than min or larger than max.
|
|
bool | operator() (const TreeIterT &) const |
| Return true if zero is outside the range.
|
|
bool | operator() (const VoxelIterT &iter) const |
| Return true if the norm of the gradient at a voxel location of the iterator is out of range.
|
|
std::string | str () const |
| Return a string describing a failed check.
|
|
template<typename GridT, typename TreeIterT = typename GridT::ValueOnCIter,
math::BiasedGradientScheme GradScheme = math::FIRST_BIAS>
struct openvdb::v11_0::tools::CheckNormGrad< GridT, TreeIterT, GradScheme >
Checks the norm of the gradient against a range, i.e., |∇Φ| ∈ [min, max].
- Note
- Internally the test is performed as |∇Φ|² ∈ [min², max²] for optimization reasons.