HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::PointsToMask< GridT, InterrupterT > Class Template Reference

Makes every voxel of a grid active if it contains a point. More...

#include <PointsToMask.h>

Classes

struct  ReducePool
 

Public Types

typedef GridT::ValueType ValueT
 

Public Member Functions

 PointsToMask (GridT &grid, InterrupterT *interrupter=nullptr)
 Constructor from a grid and optional interrupter. More...
 
template<typename PointListT >
void addPoints (const PointListT &points, size_t grainSize=1024)
 Activates the state of any voxel in the input grid that contains a point. More...
 

Detailed Description

template<typename GridT = MaskGrid, typename InterrupterT = util::NullInterrupter>
class openvdb::OPENVDB_VERSION_NAME::tools::PointsToMask< GridT, InterrupterT >

Makes every voxel of a grid active if it contains a point.

Definition at line 93 of file PointsToMask.h.

Member Typedef Documentation

template<typename GridT = MaskGrid, typename InterrupterT = util::NullInterrupter>
typedef GridT::ValueType openvdb::OPENVDB_VERSION_NAME::tools::PointsToMask< GridT, InterrupterT >::ValueT

Definition at line 131 of file PointsToMask.h.

Constructor & Destructor Documentation

template<typename GridT = MaskGrid, typename InterrupterT = util::NullInterrupter>
openvdb::OPENVDB_VERSION_NAME::tools::PointsToMask< GridT, InterrupterT >::PointsToMask ( GridT &  grid,
InterrupterT *  interrupter = nullptr 
)
inlineexplicit

Constructor from a grid and optional interrupter.

Parameters
gridGrid whoes voxels will have their state activated by points.
interrupterOptional interrupter to prematurely terminate execution.

Definition at line 137 of file PointsToMask.h.

Member Function Documentation

template<typename GridT = MaskGrid, typename InterrupterT = util::NullInterrupter>
template<typename PointListT >
void openvdb::OPENVDB_VERSION_NAME::tools::PointsToMask< GridT, InterrupterT >::addPoints ( const PointListT &  points,
size_t  grainSize = 1024 
)
inline

Activates the state of any voxel in the input grid that contains a point.

Parameters
pointsList of points that active the voxels in the input grid.
grainSizeSet the grain-size used for multi-threading. A value of 0 disables multi-threading!

Definition at line 149 of file PointsToMask.h.


The documentation for this class was generated from the following file: