|
opensurgsim
|
RandomPointGenerator will generate points based on the shape passed. More...
#include <RandomPointGenerator.h>
Public Member Functions | |
| RandomPointGenerator () | |
| Constructor. | |
| SurgSim::Math::Vector3d | pointInShape (std::shared_ptr< SurgSim::Math::Shape > shape) override |
| Generates one point inside the given shape. More... | |
| SurgSim::Math::Vector3d | pointOnShape (std::shared_ptr< SurgSim::Math::Shape > shape) override |
| Generates one point on the surface of the given shape. More... | |
Public Member Functions inherited from SurgSim::Particles::PointGenerator | |
| PointGenerator () | |
| Constructor. | |
| virtual | ~PointGenerator () |
| Destructor. | |
| void | seed (unsigned int val) |
| Set the seed to the given value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SurgSim::Particles::PointGenerator | |
| 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 |
RandomPointGenerator will generate points based on the shape passed.
Internally, this class maintains a list of PointGenerators for each supported shape. The list gets populated when RandomPointGenerator is constructed.
|
overridevirtual |
Generates one point inside the given shape.
| shape | The shape inside which a point will be generated. |
Implements SurgSim::Particles::PointGenerator.
|
overridevirtual |
Generates one point on the surface of the given shape.
| shape | The shape on which a point will be generated. |
Implements SurgSim::Particles::PointGenerator.
1.8.12