Class Argos::Naive
Naive surface sampler that generates one point per mesh vertex.More...
#include <Naive.h>
Inherits the following classes: Argos::ISurfaceSampler
Public Functions
| Type | Name |
|---|---|
| Naive () |
|
| virtual std::string | name () override const Short identifier of the sampler. |
| virtual PointCloud | sample (const Mesh & mesh) override Sample one point per mesh vertex. |
Public Functions inherited from Argos::ISurfaceSampler
| 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
Simply copies all vertex positions from the Mesh into the PointCloud without any interpolation or area-weighted distribution.
Public Functions Documentation
function Naive
function name
Short identifier of the sampler.
Returns:
"Naive Sampler".
Implements Argos::ISurfaceSampler::name
function sample
Sample one point per mesh vertex.
Parameters:
meshInput mesh.
Returns:
Point cloud containing every vertex of mesh.
Implements Argos::ISurfaceSampler::sample
The documentation for this class was generated from the following file include/algos/mesh_to_pointcloud/Naive.h