Skip to content

Class Argos::Naive

ClassList > 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

See 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

inline explicit Argos::Naive::Naive () 

function name

Short identifier of the sampler.

inline virtual std::string Argos::Naive::name () override const

Returns:

"Naive Sampler".

Implements Argos::ISurfaceSampler::name


function sample

Sample one point per mesh vertex.

virtual PointCloud Argos::Naive::sample (
    const  Mesh & mesh
) override

Parameters:

  • mesh Input 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