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

Prune any descendants whose values are all inactive and replace them with inactive tiles having values with a magnitude equal to the background value and a sign equal to 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::v1_1_0::tree::LevelSetPrune< ValueType >

Prune any descendants whose values are all inactive and replace them with inactive tiles having values with a magnitude equal to the background value and a sign equal to the first value encountered in the (inactive) child.

Note
This method is faster then tolerance based prune and useful for narrow-band level set applications where inactive values are limited to either an inside or outside value. Also note that this methods

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: