RandomPointGenerator will generate points based on the shape passed.
More...
#include <SurgSim/Particles/RandomPointGenerator.h>
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.
- See also
- PointGenerator
◆ RandomPointGenerator()
SurgSim::Particles::RandomPointGenerator::RandomPointGenerator |
( |
| ) |
|
◆ pointInShape()
Generates one point inside the given shape.
- Parameters
-
shape | The shape inside which a point will be generated. |
- Returns
- A point inside the shape, shape is assumed to be located at the origin.
Implements SurgSim::Particles::PointGenerator.
◆ pointOnShape()
Generates one point on the surface of the given shape.
- Parameters
-
shape | The shape on which a point will be generated. |
- Returns
- A point on the surface of the shape, shape is assumed to be located at the origin.
Implements SurgSim::Particles::PointGenerator.
◆ m_pointGenerators
List of point generators.
Will be populated by constructor.
The documentation for this class was generated from the following files: