The two point scatters UniformPointScatter and NonUniformPointScatter depend on the following two classes:
More...
#include <PointScatter.h>
Inherits BasePointScatter< PointAccessorType, RandomGenerator, InterruptType >.
template<typename PointAccessorType, typename RandomGenerator, typename InterruptType = util::NullInterrupter>
class openvdb::v3_2_0::tools::UniformPointScatter< PointAccessorType, RandomGenerator, InterruptType >
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:
class PointAccessor {
...
public:
};
The InterruptType
template argument below refers to any class with the following interface:
class Interrupter {
...
public:
void start(
const char* name = NULL)
};
- Note
- If no template argument is provided for this InterruptType the util::NullInterrupter is used which implies that all interrupter calls are no-ops (i.e. incurs no computational overhead). Uniform scatters of point in the active voxels. The point count is either explicitly defined or implicitly through the specification of a global density (=points-per-volume)
-
This uniform scattering technique assumes that the number of points is generally smaller than the number of active voxels (including virtual active voxels in active tiles).
§ BaseT
§ UniformPointScatter() [1/2]
UniformPointScatter |
( |
PointAccessorType & |
points, |
|
|
Index64 |
pointCount, |
|
|
RandomGenerator & |
randGen, |
|
|
InterruptType * |
interrupt = NULL |
|
) |
| |
|
inline |
§ UniformPointScatter() [2/2]
UniformPointScatter |
( |
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()
§ getPointsPerVolume()
float getPointsPerVolume |
( |
| ) |
const |
|
inline |
§ getRand()
§ getTargetPointCount()
Index64 getTargetPointCount |
( |
| ) |
const |
|
inline |
§ 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: