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
| 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
Parameters:
densityNumber of desired points per unit surface area.
function name
Short identifier of the sampler including its parameter.
Returns:
"(DensitySampler-d<density>)".
Implements Argos::ISurfaceSampler::name
function sample
Sample points so that the global density (points per unit area) equals m_density .
Parameters:
meshInput 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