Makes every voxel of a grid active if it contains a point. More...
#include <openvdb/tools/PointsToMask.h>
Classes | |
struct | ReducePool |
Public Types | |
using | ValueT = typename GridT::ValueType |
Public Member Functions | |
PointsToMask (GridT &grid, InterrupterT *interrupter=nullptr) | |
Constructor from a grid and optional interrupter. | |
template<typename PointListT, typename VecT = Vec3R> | |
void | addPoints (const PointListT &points, size_t grainSize=1024) |
Activates the state of any voxel in the input grid that contains a point. | |
Makes every voxel of a grid active if it contains a point.
using ValueT = typename GridT::ValueType |
|
inlineexplicit |
Constructor from a grid and optional interrupter.
grid | Grid whose voxels will have their state activated by points. |
interrupter | Optional interrupter to prematurely terminate execution. |
|
inline |
Activates the state of any voxel in the input grid that contains a point.
points | List of points that active the voxels in the input grid. |
grainSize | Set the grain-size used for multi-threading. A value of 0 disables multi-threading! |