Non-uniform scatters of point in the active voxels. The local point count is implicitly defined as a product of of a global density (called pointsPerVolume) and the local voxel (or tile) value.
More...
#include <PointScatter.h>
Inherits BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >.
template<typename PointAccessorType, typename RandomGenerator, typename InterruptType = util::NullInterrupter>
class openvdb::v3_2_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 (called pointsPerVolume) 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.
§ BaseT
§ NonUniformPointScatter()
NonUniformPointScatter |
( |
PointAccessorType & |
points, |
|
|
float |
pointsPerVolume, |
|
|
RandomGenerator & |
randGen, |
|
|
InterruptType * |
interrupt = NULL |
|
) |
| |
|
inline |
§ addPoint() [1/2]
void addPoint |
( |
const GridT & |
grid, |
|
|
const Vec3R & |
dmin |
|
) |
| |
|
inlineprotectedinherited |
§ addPoint() [2/2]
void addPoint |
( |
const GridT & |
grid, |
|
|
const Vec3R & |
dmin, |
|
|
const Coord & |
size |
|
) |
| |
|
inlineprotectedinherited |
§ end()
§ getPointCount()
§ getPointPerVolume()
float getPointPerVolume |
( |
| ) |
const |
|
inline |
§ getRand()
§ getVoxelCount()
§ interrupt()
§ operator()()
bool operator() |
( |
const GridT & |
grid | ) |
|
|
inline |
This is the main functor method implementing the actual scattering of points.
§ print()
void print |
( |
const std::string & |
name, |
|
|
std::ostream & |
os = std::cout |
|
) |
| const |
|
inline |
§ start()
void start |
( |
const char * |
name | ) |
|
|
inlineprotectedinherited |
§ mInterruptCount
§ mInterrupter
InterruptType* mInterrupter |
|
protectedinherited |
§ mPointCount
§ mPoints
PointAccessorType& mPoints |
|
protectedinherited |
§ mRand01
§ mVoxelCount
The documentation for this class was generated from the following file: