OpenVDB 11.0.0

Loading...
Searching...
No Matches
Namespaces | Functions
Count.h File Reference

Functions to count tiles, nodes or voxels in a grid. More...

`#include <openvdb/version.h>`
`#include <openvdb/math/Stats.h>`
`#include <openvdb/tree/LeafManager.h>`
`#include <openvdb/tree/NodeManager.h>`

Go to the source code of this file.

## Namespaces
namespace | openvdb
namespace | openvdb::v11_0
namespace | openvdb::v11_0::tools

## Functions
template<typename TreeT >
Index64 | countActiveVoxels (const TreeT &tree, bool threaded=true)
| Return the total number of active voxels in the tree.
template<typename TreeT >
Index64 | countActiveVoxels (const TreeT &tree, const CoordBBox &bbox, bool threaded=true)
| Return the total number of active voxels in the tree that intersects a bounding box.
template<typename TreeT >
Index64 | countActiveLeafVoxels (const TreeT &tree, bool threaded=true)
| Return the total number of active voxels stored in leaf nodes.
template<typename TreeT >
Index64 | countActiveLeafVoxels (const TreeT &tree, const CoordBBox &bbox, bool threaded=true)
| Return the total number of active voxels stored in leaf nodes that intersects a bounding box.
template<typename TreeT >
Index64 | countInactiveVoxels (const TreeT &tree, bool threaded=true)
| Return the total number of inactive voxels in the tree.
template<typename TreeT >
Index64 | countInactiveLeafVoxels (const TreeT &tree, bool threaded=true)
| Return the total number of inactive voxels stored in leaf nodes.
template<typename TreeT >
Index64 | countActiveTiles (const TreeT &tree, bool threaded=true)
| Return the total number of active tiles in the tree.
template<typename TreeT >
Index64 | memUsage (const TreeT &tree, bool threaded=true)
| Return the total amount of memory in bytes occupied by this tree.
template<typename TreeT >
Index64 | memUsageIfLoaded (const TreeT &tree, bool threaded=true)
| Return the deserialized memory usage of this tree. This is not necessarily equal to the current memory usage (returned by tools::memUsage) if delay-loading is enabled. See File::open.
template<typename TreeT >
math::MinMax< typename TreeT::ValueType > | minMax (const TreeT &tree, bool threaded=true)
| Return the minimum and maximum active values in this tree.

## Detailed Description

Functions to count tiles, nodes or voxels in a grid.

Author
  Dan Bailey