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,
37 const bool threaded =
true);
46 template <
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);
57 template <
typename PointDataGridT,
59 typename FilterT = NullFilter>
60 inline typename GridT::Ptr
62 const FilterT&
filter = NullFilter());
70 template <
typename PointDataGridT,
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
GLdouble GLdouble GLint GLint const GLdouble * points
GridT::Ptr pointCountGrid(const PointDataGridT &points, const FilterT &filter)
Generate a new grid with voxel values to store the number of points per voxel.
#define OPENVDB_USE_VERSION_NAMESPACE
Index filters primarily designed to be used with a FilterIndexIter.
Tree< typename RootNodeType::template ValueConverter< Int32 >::Type > Type
Index64 pointCount(const PointDataTreeT &tree, const FilterT &filter, const bool inCoreOnly, const bool threaded)
Count the total number of points in a PointDataTree.
GA_API const UT_StringHolder transform
Methods for extracting masks from VDB Point grids.
Index64 pointOffsets(std::vector< Index64 > &pointOffsets, const PointDataTreeT &tree, const FilterT &filter, const bool inCoreOnly, const bool threaded)
Populate an array of cumulative point offsets per leaf node.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter