HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointCount.h File Reference

Methods for counting points in VDB Point grids. More...

#include <openvdb/openvdb.h>
#include "PointDataGrid.h"
#include "PointMask.h"
#include "IndexFilter.h"
#include <tbb/parallel_reduce.h>
#include <vector>
+ Include dependency graph for PointCount.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 
 openvdb::OPENVDB_VERSION_NAME::points
 

Functions

template<typename PointDataTreeT , typename FilterT = NullFilter>
Index64 openvdb::OPENVDB_VERSION_NAME::points::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. More...
 
template<typename PointDataTreeT , typename FilterT = NullFilter>
Index64 openvdb::OPENVDB_VERSION_NAME::points::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. More...
 
template<typename PointDataGridT , typename GridT = typename PointDataGridT::template ValueConverter<Int32>::Type, typename FilterT = NullFilter>
GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::pointCountGrid (const PointDataGridT &grid, const FilterT &filter=NullFilter())
 Generate a new grid with voxel values to store the number of points per voxel. More...
 
template<typename PointDataGridT , typename GridT = typename PointDataGridT::template ValueConverter<Int32>::Type, typename FilterT = NullFilter>
GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::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 per voxel. More...
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::pointCount (const PointDataTreeT &tree, const bool inCoreOnly)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::activePointCount (const PointDataTreeT &tree, const bool inCoreOnly=true)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::inactivePointCount (const PointDataTreeT &tree, const bool inCoreOnly=true)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::groupPointCount (const PointDataTreeT &tree, const Name &name, const bool inCoreOnly=true)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::activeGroupPointCount (const PointDataTreeT &tree, const Name &name, const bool inCoreOnly=true)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::inactiveGroupPointCount (const PointDataTreeT &tree, const Name &name, const bool inCoreOnly=true)
 
template<typename PointDataTreeT >
OPENVDB_DEPRECATED Index64 openvdb::OPENVDB_VERSION_NAME::points::getPointOffsets (std::vector< Index64 > &offsets, const PointDataTreeT &tree, const std::vector< Name > &includeGroups, const std::vector< Name > &excludeGroups, const bool inCoreOnly=false)
 
template<typename PointDataGridT , typename GridT = typename PointDataGridT::template ValueConverter<Int32>::Type>
OPENVDB_DEPRECATED GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::pointCountGrid (const PointDataGridT &grid, const std::vector< Name > &includeGroups, const std::vector< Name > &excludeGroups)
 
template<typename PointDataGridT , typename GridT = typename PointDataGridT::template ValueConverter<Int32>::Type>
OPENVDB_DEPRECATED GridT::Ptr openvdb::OPENVDB_VERSION_NAME::points::pointCountGrid (const PointDataGridT &grid, const openvdb::math::Transform &transform, const std::vector< Name > &includeGroups, const std::vector< Name > &excludeGroups)
 

Detailed Description

Methods for counting points in VDB Point grids.

Author
Dan Bailey

Definition in file PointCount.h.