|
HDK
|
Scatters a fixed (and integer) number of points in all active voxels and tiles. More...
#include <PointScatter.h>
Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::DenseUniformPointScatter< PointAccessorType, RandomGenerator, InterruptType >:Public Types | |
| using | BaseT = BasePointScatter< PointAccessorType, RandomGenerator, InterruptType > |
Public Member Functions | |
| DenseUniformPointScatter (PointAccessorType &points, float pointsPerVoxel, 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. More... | |
| void | print (const std::string &name, std::ostream &os=std::cout) const |
| float | getPointsPerVoxel () const |
Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType > | |
| Index64 | getPointCount () const |
| Index64 | getVoxelCount () const |
Additional Inherited Members | |
Protected Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType > | |
| BasePointScatter (PointAccessorType &points, RandomGenerator &randGen, double spread, InterruptType *interrupt=nullptr) | |
| This is a base class so the constructor is protected. More... | |
| 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) |
Protected Attributes inherited from openvdb::OPENVDB_VERSION_NAME::tools::BasePointScatter< PointAccessorType, RandomGenerator, InterruptType > | |
| PointAccessorType & | mPoints |
| InterruptType * | mInterrupter |
| Index64 | mPointCount |
| Index64 | mVoxelCount |
| Index64 | mInterruptCount |
| const double | mSpread |
| math::Rand01< double, RandomGenerator > | mRand01 |
Scatters a fixed (and integer) number of points in all active voxels and tiles.
Definition at line 188 of file PointScatter.h.
| using openvdb::OPENVDB_VERSION_NAME::tools::DenseUniformPointScatter< PointAccessorType, RandomGenerator, InterruptType >::BaseT = BasePointScatter<PointAccessorType, RandomGenerator, InterruptType> |
Definition at line 193 of file PointScatter.h.
|
inline |
Definition at line 195 of file PointScatter.h.
|
inline |
Definition at line 251 of file PointScatter.h.
|
inline |
This is the main functor method implementing the actual scattering of points.
Definition at line 207 of file PointScatter.h.
|
inline |
Definition at line 244 of file PointScatter.h.