10#ifndef OPENVDB_POINTS_POINT_COUNT_HAS_BEEN_INCLUDED 
   11#define OPENVDB_POINTS_POINT_COUNT_HAS_BEEN_INCLUDED 
   19#include <tbb/parallel_reduce.h> 
   33template <
typename Po
intDataTreeT, 
typename FilterT = NullFilter>
 
   35                            const FilterT& filter = NullFilter(),
 
   36                            const bool inCoreOnly = 
false,
 
   37                            const bool threaded = 
true);
 
   46template <
typename Po
intDataTreeT, 
typename FilterT = NullFilter>
 
   48                            const PointDataTreeT& tree,
 
   49                            const FilterT& filter = NullFilter(),
 
   50                            const bool inCoreOnly = 
false,
 
   51                            const bool threaded = 
true);
 
   57template <
typename PointDataGridT,
 
   58    typename GridT = 
typename PointDataGridT::template ValueConverter<Int32>::Type,
 
   59    typename FilterT = NullFilter>
 
   60inline typename GridT::Ptr
 
   62                const FilterT& filter = NullFilter());
 
   70template <
typename PointDataGridT,
 
   71    typename GridT = 
typename PointDataGridT::template ValueConverter<Int32>::Type,
 
   72    typename FilterT = NullFilter>
 
   73inline typename GridT::Ptr
 
   75                const openvdb::math::Transform& transform,
 
   76                const FilterT& filter = NullFilter());
 
Index filters primarily designed to be used with a FilterIndexIter.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
Methods for extracting masks from VDB Point grids.
Index64 pointOffsets(std::vector< Index64 > &pointOffsets, const PointDataTreeT &tree, const FilterT &filter=NullFilter(), const bool inCoreOnly=false, const bool threaded=true)
Populate an array of cumulative point offsets per leaf node.
Definition PointCountImpl.h:52
Index64 pointCount(const PointDataTreeT &tree, const FilterT &filter=NullFilter(), const bool inCoreOnly=false, const bool threaded=true)
Count the total number of points in a PointDataTree.
Definition PointCountImpl.h:18
GridT::Ptr pointCountGrid(const PointDataGridT &grid, const FilterT &filter=NullFilter())
Generate a new grid with voxel values to store the number of points per voxel.
Definition PointCountImpl.h:95
uint64_t Index64
Definition Types.h:53
Definition Exceptions.h:13
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218