OpenVDB  2.0.0
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
LevelSetPrune< ValueType > Struct Template Reference

Helper class for use with Tree::pruneOp() to prune any branches whose values are all inactive and replace each with an inactive tile whose value is equal in magnitude to the background value and whose sign is equal to that of the first value encountered in the (inactive) child. More...

#include <Util.h>

Public Member Functions

 LevelSetPrune (const ValueType &background)
 
template<typename ChildType >
bool operator() (ChildType &child)
 

Public Attributes

const ValueType outside
 
ValueType value
 

Static Public Attributes

static const bool state = false
 

Detailed Description

template<typename ValueType>
struct openvdb::v2_0_0::tree::LevelSetPrune< ValueType >

Helper class for use with Tree::pruneOp() to prune any branches whose values are all inactive and replace each with an inactive tile whose value is equal in magnitude to the background value and whose sign is equal to that of the first value encountered in the (inactive) child.

This operation is faster than a TolerancePrune and useful for narrow-band level set applications where inactive values are limited to either the inside or the outside value.

Constructor & Destructor Documentation

LevelSetPrune ( const ValueType &  background)
inline

Member Function Documentation

bool operator() ( ChildType &  child)
inline

Member Data Documentation

const ValueType outside
const bool state = false
static
ValueType value

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