Skip to content

Class Argos::DensitySampler

ClassList > Argos > DensitySampler

Surface sampler that distributes points according to a global point density (points per unit area). More...

  • #include <DensitySampler.h>

Inherits the following classes: Argos::ISurfaceSampler

Public Functions

Type Name
DensitySampler (float density)
virtual std::string name () override const
Short identifier of the sampler including its parameter.
virtual PointCloud sample (const Mesh & mesh) override
Sample points so that the global density (points per unit area) equals m_density .

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

The total number of generated points is proportional to the mesh surface area multiplied by the specified density.

Public Functions Documentation

function DensitySampler

inline explicit Argos::DensitySampler::DensitySampler (
    float density
) 

Parameters:

  • density Number of desired points per unit surface area.

function name

Short identifier of the sampler including its parameter.

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

Returns:

"(DensitySampler-d<density>)".

Implements Argos::ISurfaceSampler::name


function sample

Sample points so that the global density (points per unit area) equals m_density .

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

Parameters:

  • mesh Input mesh.

Returns:

Point cloud with m_density * surfaceArea points.

Implements Argos::ISurfaceSampler::sample



The documentation for this class was generated from the following file include/algos/mesh_to_pointcloud/DensitySampler.h