- Timestamp:
- 01/09/09 19:50:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/main.cpp
r3247 r3261 1 #include "ObjConverter .h"1 #include "ObjConverter2.h" 2 2 #include <iostream> 3 3 #include <time.h> … … 5 5 using namespace std; 6 6 7 static string model_path("data/city/model/");8 7 9 8 int main(int argc, char* argv[]) … … 11 10 int returnCode = 0; 12 11 13 ObjConverter converter;12 ObjConverter2 converter; 14 13 15 14 cout << "converting obj to dem format" << endl; 16 15 #if 0 17 16 if (!converter.LoadMaterials(model_path + argv[3])) 18 17 { … … 30 29 exit(0); 31 30 } 31 #else 32 33 //const int numFiles = 879; 34 const int numFiles = 100; 35 36 vector<string> filenames; 37 const string base(model_path + argv[1]); 38 39 for (int i = 0; i < numFiles; ++ i) 40 { 41 char filename[100]; 42 sprintf(filename, "%s%s%d%s", base.c_str(), ".b", i, ".obj"); 43 filenames.push_back(filename); 44 } 45 46 if (!converter.Convert2(filenames, model_path + argv[2])) 47 { 48 cerr << "conversion failed" << endl; 49 50 std::cin.get(); 51 exit(0); 52 } 53 #endif 32 54 33 55 cout << "conversion successful" << endl; 34 cout << "press any key" << std::cin.get();56 //cout << "press any key" << std::cin.get(); 35 57 36 58 return 0;
Note: See TracChangeset
for help on using the changeset viewer.