The two point scatters UniformPointScatter and NonUniformPointScatter depend on the following two classes: More...
#include <openvdb/tools/PointScatter.h>
Public Types | |
| using | BaseT = BasePointScatter<PointAccessorType, RandomGenerator, InterruptType> |
Public Member Functions | |
| UniformPointScatter (PointAccessorType &points, Index64 pointCount, RandomGenerator &randGen, double spread=1.0, InterruptType *interrupt=nullptr) | |
| UniformPointScatter (PointAccessorType &points, float pointsPerVolume, RandomGenerator &randGen, double spread=1.0, InterruptType *interrupt=nullptr) | |
| template<typename GridT> | |
| bool | operator() (const GridT &grid) |
| This is the main functor method implementing the actual scattering of points. | |
| void | print (const std::string &name, std::ostream &os=std::cout) const |
| float | getPointsPerVolume () const |
| Index64 | getTargetPointCount () const |
| Index64 | getPointCount () const |
| Index64 | getVoxelCount () const |
Protected Member Functions | |
| void | start (const char *name) |
| void | end () |
| bool | interrupt () |
| double | getRand01 () |
| Return a random floating point number between zero and one. | |
| double | getRand () |
| Return a random floating point number between 0.5 -+ mSpread/2. | |
| void | addPoint (const GridT &grid, const Vec3R &dmin) |
| void | addPoint (const GridT &grid, const Vec3R &dmin, const Coord &size) |
Protected Attributes | |
| PointAccessorType & | mPoints |
| util::NullInterrupter * | mInterrupter |
| Index64 | mInterruptCount |
| const double | mSpread |
| math::Rand01< double, RandomGenerator > | mRand01 |
The two point scatters UniformPointScatter and NonUniformPointScatter depend on the following two classes:
The PointAccessorType template argument below refers to any class with the following interface:
The InterruptType template argument below refers to any class with the following interface:
Uniformly scatters points in the active voxels. The point count is either explicitly defined or implicitly through the specification of a global density (=points-per-volume)
| using BaseT = BasePointScatter<PointAccessorType, RandomGenerator, InterruptType> |
|
inline |
|
inline |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inline |
|
inlineprotectedinherited |
Return a random floating point number between 0.5 -+ mSpread/2.
|
inlineprotectedinherited |
Return a random floating point number between zero and one.
|
inline |
|
inlineinherited |
|
inlineprotectedinherited |
|
inline |
This is the main functor method implementing the actual scattering of points.
|
inline |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |