Skip to content

File DensitySampler.h

File List > algos > mesh_to_pointcloud > DensitySampler.h

Go to the documentation of this file

#pragma once

#include "ISurfaceSampler.h"
#include "point_cloud/PointCloud.h"

namespace Argos {

    class DensitySampler : public ISurfaceSampler
    {
    private:
        float m_density; 
    public:
        explicit DensitySampler(float density) : m_density(density) {}

        PointCloud sample(const Mesh& mesh) override;

        std::string name() const override {
            return "(DensitySampler-d" + std::to_string(m_density) + ")";
        }
    };

}