-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (27 loc) · 867 Bytes
/
main.cpp
File metadata and controls
30 lines (27 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <qapplication.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "Viewer.h"
using namespace std;
int main(int argc, char **argv) {
// Read command lines arguments.
QApplication application(argc, argv);
TriangleSoup iSoup;
TriangleSoup iSoupZip;
ifstream input(argv[1]);
iSoup.read(input);
input.close();
std::cout << "Nombre de triangles en entrée: " << iSoup.triangles.size() << std::endl;
//TriangleSoupZipper(iSoup, iSoupZip, Index(10, 10, 10));
// Instantiate the viewer. le faire sous cette forme car le contructeur a ete redefini
Viewer viewer(&iSoup /*&iSoupZip*/);
// Give a name
viewer.setWindowTitle("Viewer triangle soup");
// Make the viewer window visible on screen.
viewer.show();
// Run main loop.
application.exec();
return 0;
}