10 #ifndef OPENVDB_POINTS_POINT_COUNT_HAS_BEEN_INCLUDED 11 #define OPENVDB_POINTS_POINT_COUNT_HAS_BEEN_INCLUDED 19 #include <tbb/parallel_reduce.h> 33 template <
typename Po
intDataTreeT,
typename FilterT = NullFilter>
35 const FilterT& filter = NullFilter(),
36 const bool inCoreOnly =
false,
46 template <
typename Po
intDataTreeT,
typename FilterT = NullFilter>
48 const PointDataTreeT& tree,
49 const FilterT& filter = NullFilter(),
50 const bool inCoreOnly =
false,
57 template <
typename PointDataGridT,
59 typename FilterT = NullFilter>
60 inline typename GridT::Ptr
62 const FilterT& filter = NullFilter());
70 template <
typename PointDataGridT,
71 typename GridT =
typename PointDataGridT::template ValueConverter<Int32>::Type,
72 typename FilterT = NullFilter>
73 inline typename GridT::Ptr
75 const openvdb::math::Transform& transform,
76 const FilterT& filter = NullFilter());
84 #endif // OPENVDB_POINTS_POINT_COUNT_HAS_BEEN_INCLUDED 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
GridT::Ptr pointCountGrid(const PointDataGridT &grid, const openvdb::math::Transform &transform, const FilterT &filter=NullFilter())
Generate a new grid that uses the supplied transform with voxel values to store the number of points ...
Definition: PointCountImpl.h:117
uint64_t Index64
Definition: Types.h:53
Index filters primarily designed to be used with a FilterIndexIter.
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
Definition: Exceptions.h:13
Methods for extracting masks from VDB Point grids.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:121
Tree< typename RootNodeType::template ValueConverter< Int32 >::Type > Type
Definition: Tree.h:220
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:218