OpenVDB  8.1.1
Classes | Public Types | Public Member Functions | List of all members
Voxelizer< TreeT > Struct Template Reference

#include <Filter.h>

Public Types

using NodeManagerT = tree::NodeManager< TreeT, TreeT::RootNodeType::LEVEL-1 >
 
using MaskT = typename TreeT::template ValueConverter< ValueMask >::Type
 

Public Member Functions

 Voxelizer (TreeT &tree, const bool allNeighbours, const size_t grainSize)
 
int run (const int width)
 Convert tiles to leaf nodes that exist at a particular voxel distance away. More...
 

Member Typedef Documentation

using MaskT = typename TreeT::template ValueConverter<ValueMask>::Type
using NodeManagerT = tree::NodeManager<TreeT, TreeT::RootNodeType::LEVEL-1>

Constructor & Destructor Documentation

Voxelizer ( TreeT &  tree,
const bool  allNeighbours,
const size_t  grainSize 
)
inline

Member Function Documentation

int run ( const int  width)
inline

Convert tiles to leaf nodes that exist at a particular voxel distance away.

Parameters
widthdistance in voxels to seach for tiles from each leaf
Returns
Returns how many search iterations were performed, which also represents how many leaf node neighbours may have been created. Returns 0 if the tree is already entirely voxelized

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