PointGenerator is used to generate points inside or on the surface of a given shape.
More...
#include <PointGenerator.h>
|
|
std::mt19937 | m_generator |
|
std::uniform_real_distribution< double > | m_openOneOneDistribution |
|
std::uniform_real_distribution< double > | m_closedOneOneDistribution |
|
std::uniform_real_distribution< double > | m_closedZeroOneDistribution |
|
std::uniform_real_distribution< double > | m_closedZeroOpenOneDistribution |
|
PointGenerator is used to generate points inside or on the surface of a given shape.
Derived classes need to implement pointInShape() and pointOnShape().
§ pointInShape()
§ pointOnShape()
§ seed()
void SurgSim::Particles::PointGenerator::seed |
( |
unsigned int |
val | ) |
|
|
inline |
Set the seed to the given value.
- Parameters
-
val | the new seed for the random number generator |
§ m_generator
std::mt19937 SurgSim::Particles::PointGenerator::m_generator |
|
protected |
Random number generator and some predefined distributions to be used by different shape point generators.
The documentation for this class was generated from the following files: