OpenVDB  2.1.0
Public Member Functions | Public Attributes | List of all members
TolerancePrune< ValueType, TerminationLevel > Struct Template Reference

Helper class for use with Tree::pruneOp() to replace constant branches (to within the provided tolerance) with more memory-efficient tiles. More...

#include <Util.h>

Public Member Functions

 TolerancePrune (const ValueType &tol)
 
template<typename ChildType >
bool operator() (ChildType &child)
 
template<typename ChildType >
bool isConstant (ChildType &child)
 

Public Attributes

bool state
 
ValueType value
 
const ValueType tolerance
 

Detailed Description

template<typename ValueType, Index TerminationLevel = 0>
struct openvdb::v2_1_0::tree::TolerancePrune< ValueType, TerminationLevel >

Helper class for use with Tree::pruneOp() to replace constant branches (to within the provided tolerance) with more memory-efficient tiles.

Constructor & Destructor Documentation

TolerancePrune ( const ValueType &  tol)
inline

Member Function Documentation

bool isConstant ( ChildType &  child)
inline
bool operator() ( ChildType &  child)
inline

Member Data Documentation

bool state
const ValueType tolerance
ValueType value

The documentation for this struct was generated from the following file: