Skip to content

File vertices_to_points.cpp

File List > apps > mesh_to_pointcloud > vertices_to_points.cpp

Go to the documentation of this file

#include <iostream>

/*
#include <argos/mesh/IndexedMesh.h>
#include <argos/sampling/NaiveSampling.h>
*/


int main()
{
    /*
    Argos::IndexedMesh mesh;

    // Donn�es factices pour tester
    mesh.vertices.push_back({ 0.f, 0.f, 0.f });
    mesh.vertices.push_back({ 1.f, 0.f, 0.f });
    mesh.vertices.push_back({ 0.f, 1.f, 0.f });

    auto cloud = Argos::NaiveSampling::sample(mesh);

    std::cout << "Vertices: " << mesh.vertexCount() << std::endl;
    std::cout << "Points:   " << cloud.size() << std::endl;

    */

    return 0;
}