Finds the active values in a tree which intersects a bounding box. More...
#include <openvdb/tools/FindActiveValues.h>
Classes | |
struct | RootChild |
Public Types | |
using | TileDataT = TileData<typename TreeT::ValueType> |
Public Member Functions | |
FindActiveValues (const TreeT &tree) | |
Constructor from a const tree, which is assumed not to be modified after construction. | |
~FindActiveValues () | |
Default destructor. | |
void | update (const TreeT &tree) |
Initiate this class with a new (or modified) tree. | |
bool | anyActiveValues (const CoordBBox &bbox, bool useAccessor=false) const |
Returns true if the specified bounding box intersects any active values. | |
bool | anyActiveVoxels (const CoordBBox &bbox) const |
Returns true if the specified bounding box intersects any active tiles only. | |
bool | anyActiveTiles (const CoordBBox &bbox) const |
Returns true if the specified bounding box intersects any active tiles only. | |
bool | noActiveValues (const CoordBBox &bbox, bool useAccessor=false) const |
Returns true if the specified bounding box does not intersect any active values. | |
Index64 | count (const CoordBBox &bbox) const |
Returns the number of active voxels intersected by the specified bounding box. | |
std::vector< TileDataT > | activeTiles (const CoordBBox &bbox) const |
Return a vector with bounding boxes that represents all the intersections between active tiles in the tree and the specified bounding box. | |
Finds the active values in a tree which intersects a bounding box.
Two methods are provided, one that count the number of active values and one that simply tests if any active values intersect the bbox.
FindActiveValues | ( | const TreeT & | tree | ) |
Constructor from a const tree, which is assumed not to be modified after construction.
~FindActiveValues | ( | ) |
Default destructor.
std::vector< TileData< typename TreeT::ValueType > > activeTiles | ( | const CoordBBox & | bbox | ) | const |
Return a vector with bounding boxes that represents all the intersections between active tiles in the tree and the specified bounding box.
Returns true if the specified bounding box intersects any active tiles only.
bool anyActiveValues | ( | const CoordBBox & | bbox, |
bool | useAccessor = false ) const |
Returns true if the specified bounding box intersects any active values.
Returns true if the specified bounding box intersects any active tiles only.
Returns the number of active voxels intersected by the specified bounding box.
|
inline |
Returns true if the specified bounding box does not intersect any active values.
void update | ( | const TreeT & | tree | ) |
Initiate this class with a new (or modified) tree.