Class Argos::ISurfaceSampler
ClassList > Argos > ISurfaceSampler
Abstract interface for sampling a point cloud from a mesh. More...
#include <ISurfaceSampler.h>
Inherited by the following classes: Argos::CentroidSampler, Argos::DensitySampler, Argos::Naive, Argos::PointsPerFaceSampler, Argos::UniformAreaSampler, Argos::UniformPerFaceSampler
Public Functions
| Type | Name |
|---|---|
| virtual std::string | name () const = 0 Short identifier of the strategy. |
| virtual PointCloud | sample (const Mesh & mesh) = 0 Sample a point cloud from a mesh. |
| virtual | ~ISurfaceSampler () = default |
Detailed Description
This class defines the common contract for every sampling strategy (Naive, UniformArea, Stratified, etc.).
Every derived implementation encapsulates its own logic and its own internal parameters.
Public Functions Documentation
function name
Short identifier of the strategy.
Returns:
Human-readable name (e.g. "Naive Sampler").
function sample
Sample a point cloud from a mesh.
Parameters:
meshInput mesh (read-only).
Returns:
Generated point cloud.
function ~ISurfaceSampler
The documentation for this class was generated from the following file include/algos/mesh_to_pointcloud/ISurfaceSampler.h