RandomPointGenerator will generate points based on the shape passed.
Definition: RandomPointGenerator.h:36
SurgSim::Math::Vector3d pointInShape(std::shared_ptr< SurgSim::Math::Shape > shape) override
Generates one point inside the given shape.
Definition: RandomPointGenerator.cpp:42
PointGenerator is used to generate points inside or on the surface of a given shape.
Definition: PointGenerator.h:38
std::array< std::unique_ptr< PointGenerator >, SurgSim::Math::SHAPE_TYPE_COUNT > m_pointGenerators
List of point generators.
Definition: RandomPointGenerator.h:47
RandomPointGenerator()
Constructor.
Definition: RandomPointGenerator.cpp:30
DataStructures::Vertices< ParticleData > Particles
Definition: Particles.h:53
SurgSim::Math::Vector3d pointOnShape(std::shared_ptr< SurgSim::Math::Shape > shape) override
Generates one point on the surface of the given shape.
Definition: RandomPointGenerator.cpp:53