This repository has been archived on 2020-10-03. You can view files and clone it, but cannot push or open issues or pull requests.
pgai_tp1/src/main.cpp

18 lines
274 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "my_mesh.h"
#include <iostream>
int main(int argc, char *argv[]) {
using namespace std;
if (argc != 2) {
cerr << "Utilisation: " << argv[0] << " [fichier.obj]" << endl;
return 1;
}
MyMesh mesh;
OpenMesh::IO::read_mesh(mesh, argv[1]);
return 0;
}