Scatters a fixed (and integer) number of points in all active voxels and tiles.
More...
#include <openvdb/tools/PointScatter.h>
Inherits BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >.
|
void | start (const char *name) |
|
void | end () |
|
bool | interrupt () |
|
double | getRand01 () |
| Return a random floating point number between zero and one. More...
|
|
double | getRand () |
| Return a random floating point number between 0.5 -+ mSpread/2. More...
|
|
template<typename GridT > |
void | addPoint (const GridT &grid, const Vec3R &dmin) |
|
template<typename GridT > |
void | addPoint (const GridT &grid, const Vec3R &dmin, const Coord &size) |
|
template<typename PointAccessorType, typename RandomGenerator, typename InterruptType = util::NullInterrupter>
class openvdb::v12_0::tools::DenseUniformPointScatter< PointAccessorType, RandomGenerator, InterruptType >
Scatters a fixed (and integer) number of points in all active voxels and tiles.
DenseUniformPointScatter |
( |
PointAccessorType & |
points, |
|
|
float |
pointsPerVoxel, |
|
|
RandomGenerator & |
randGen, |
|
|
double |
spread = 1.0 , |
|
|
InterruptType * |
interrupt = nullptr |
|
) |
| |
|
inline |
void addPoint |
( |
const GridT & |
grid, |
|
|
const Vec3R & |
dmin |
|
) |
| |
|
inlineprotectedinherited |
void addPoint |
( |
const GridT & |
grid, |
|
|
const Vec3R & |
dmin, |
|
|
const Coord & |
size |
|
) |
| |
|
inlineprotectedinherited |
float getPointsPerVoxel |
( |
| ) |
const |
|
inline |
Return a random floating point number between 0.5 -+ mSpread/2.
Return a random floating point number between zero and one.
bool operator() |
( |
const GridT & |
grid | ) |
|
|
inline |
This is the main functor method implementing the actual scattering of points.
void print |
( |
const std::string & |
name, |
|
|
std::ostream & |
os = std::cout |
|
) |
| const |
|
inline |
void start |
( |
const char * |
name | ) |
|
|
inlineprotectedinherited |
InterruptType* mInterrupter |
|
protectedinherited |
PointAccessorType& mPoints |
|
protectedinherited |