-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (24 loc) · 736 Bytes
/
Copy pathmain.cpp
File metadata and controls
28 lines (24 loc) · 736 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
#include <QCoreApplication>
#include "objreader.h"
#include "objreadertests.h"
#include "meshtooltests.h"
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
ObjReaderTests readerTests;
QTest::qExec(&readerTests);
MeshToolTests meshToolTests;
QTest::qExec(&meshToolTests);
QString fileName = "D:/OBJ/Teapot.obj";
ObjReadingTools::ObjData objData;
QString errorMsg;
if (!ObjReadingTools::read(fileName, objData, errorMsg)) {
qDebug() << errorMsg;
return -1;
}
QFile fileOut("D:/OBJ/Teapot_copy2.obj");//file directory
ObjReadingTools::save(objData, fileOut,errorMsg);
qDebug() << "Done";
return 0;
}