![]() |
DefaultPointGenerator, methods of this class will always return (0.0, 0.0, 0.0) and output a severe logging message. More...
#include <SurgSim/Particles/DefaultPointGenerator.h>
Public Member Functions | |
virtual | ~DefaultPointGenerator () |
Destructor. More... | |
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... | |
![]() | |
PointGenerator () | |
Constructor. More... | |
virtual | ~PointGenerator () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
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 |
DefaultPointGenerator, methods of this class will always return (0.0, 0.0, 0.0) and output a severe logging message.
They are served more like a place holder (concrete implementation) to be used in ShapesPointGenerator. One should develop an actual XXXPointGenerator to produce points in/on the shape.
|
virtual |
Destructor.
|
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.