Revision 2963,
840 bytes
checked in by mattausch, 16 years ago
(diff) |
debug version trying to find out how to speed up app
|
Line | |
---|
1 | #include "ObjConverter.h"
|
---|
2 | #include <iostream>
|
---|
3 |
|
---|
4 |
|
---|
5 | using namespace std;
|
---|
6 |
|
---|
7 | static string model_path("data/city/model/");
|
---|
8 |
|
---|
9 | int main(int argc, char* argv[])
|
---|
10 | {
|
---|
11 | int returnCode = 0;
|
---|
12 |
|
---|
13 | ObjConverter converter;
|
---|
14 |
|
---|
15 | cout << "converting obj to dem format" << endl;
|
---|
16 |
|
---|
17 | /* if (!converter.Convert(model_path + argv[1], model_path + argv[2]))
|
---|
18 | {
|
---|
19 | cerr << "conversion failed" << endl;
|
---|
20 | exit(0);
|
---|
21 | }
|
---|
22 | */
|
---|
23 | //if (!converter.Convert(model_path + "toyplane.obj", model_path + "toyplane.dem"))
|
---|
24 | // cerr << "conversion failed" << endl;
|
---|
25 |
|
---|
26 | //if (!converter.Convert(model_path + "sky.obj", model_path + "sky.dem"))
|
---|
27 | // cerr << "conversion failed" << endl;
|
---|
28 |
|
---|
29 | if (!converter.Convert(model_path + "city_full.obj", model_path + "city_full.dem"))
|
---|
30 | cerr << "conversion failed" << endl;
|
---|
31 |
|
---|
32 | cout << "conversion successful" << endl;
|
---|
33 | return 0;
|
---|
34 | }
|
---|
35 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.