Skip to content

File PointsPerFaceSampler.h

File List > algos > mesh_to_pointcloud > PointsPerFaceSampler.h

Go to the documentation of this file

#pragma once

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

#include <cstdlib>

namespace Argos {

    class PointsPerFaceSampler : public ISurfaceSampler
    {
    private:
        std::size_t m_pointPerFace; 
    public:
        explicit PointsPerFaceSampler(std::size_t pointPerFace) : m_pointPerFace(pointPerFace) {}

        PointCloud sample(const Mesh& mesh) override;

        std::string name() const override {
            return "(PointsPerFaceSampler-ppf" + std::to_string(m_pointPerFace) + ")";
        }
    };

}