OpenVDB  9.0.1
Public Types | Public Member Functions | List of all members
CsgDifferenceOp< TreeT > Struct Template Reference

DynamicNodeManager operator to merge two trees using a CSG difference. More...

#include <openvdb/tools/Merge.h>

Public Types

using ValueT = typename TreeT::ValueType
 
using RootT = typename TreeT::RootNodeType
 
using LeafT = typename TreeT::LeafNodeType
 

Public Member Functions

template<typename TagT >
 CsgDifferenceOp (TreeT &tree, TagT tag)
 Convenience constructor to CSG difference a single non-const tree from another. This constructor takes a Steal or DeepCopy tag dispatch class. More...
 
 CsgDifferenceOp (const TreeT &tree, DeepCopy tag)
 Convenience constructor to CSG difference a single const tree from another. This constructor requires an explicit DeepCopy tag dispatch class. More...
 
 CsgDifferenceOp (TreeToMerge< TreeT > &tree)
 Constructor to CSG difference the tree in a TreeToMerge object from another. More...
 
size_t size () const
 Return the number of trees being merged (only ever 1) More...
 
bool operator() (RootT &root, size_t idx) const
 
template<typename NodeT >
bool operator() (NodeT &node, size_t idx) const
 
bool operator() (LeafT &leaf, size_t idx) const
 

Detailed Description

template<typename TreeT>
struct openvdb::v9_0::tools::CsgDifferenceOp< TreeT >

DynamicNodeManager operator to merge two trees using a CSG difference.

Note
This class modifies the topology of the tree so is designed to be used from DynamicNodeManager::foreachTopDown().

Member Typedef Documentation

using LeafT = typename TreeT::LeafNodeType
using RootT = typename TreeT::RootNodeType
using ValueT = typename TreeT::ValueType

Constructor & Destructor Documentation

CsgDifferenceOp ( TreeT &  tree,
TagT  tag 
)
inline

Convenience constructor to CSG difference a single non-const tree from another. This constructor takes a Steal or DeepCopy tag dispatch class.

CsgDifferenceOp ( const TreeT &  tree,
DeepCopy  tag 
)
inline

Convenience constructor to CSG difference a single const tree from another. This constructor requires an explicit DeepCopy tag dispatch class.

CsgDifferenceOp ( TreeToMerge< TreeT > &  tree)
inlineexplicit

Constructor to CSG difference the tree in a TreeToMerge object from another.

Member Function Documentation

bool operator() ( RootT root,
size_t  idx 
) const
bool operator() ( NodeT &  node,
size_t  idx 
) const
bool operator() ( LeafT leaf,
size_t  idx 
) const
size_t size ( ) const
inline

Return the number of trees being merged (only ever 1)