Non-uniform scatters of point in the active voxels. The local point count is implicitly defined as a product of of a global density and the local voxel (or tile) value.
More...
#include <PointScatter.h>
template<typename PointAccessorType, typename RandomGenerator, typename InterruptType = openvdb::util::NullInterrupter>
class openvdb::v0_104_0::tools::NonUniformPointScatter< PointAccessorType, RandomGenerator, InterruptType >
Non-uniform scatters of point in the active voxels. The local point count is implicitly defined as a product of of a global density and the local voxel (or tile) value.
- Note
- This scattering technique can be significantly slower than a uniform scattering since its computational complexity is proportional to the active voxel (and tile) count.
NonUniformPointScatter |
( |
PointAccessorType & |
points, |
|
|
float |
pointsPerVolume, |
|
|
RandomGenerator & |
randGen, |
|
|
InterruptType * |
interrupt = NULL |
|
) |
| |
|
inline |
int getPointCount |
( |
| ) |
const |
|
inline |
void 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 |
InterruptType* mInterrupter |
|
protected |
PointAccessorType& mPoints |
|
protected |
boost::uniform_01<double> mRandom |
|
protected |
RandomGenerator& mRandomGen |
|
protected |
The documentation for this class was generated from the following file: