#include "ObjConverter.h" #include #include using namespace std; static string model_path("data/city/model/"); int main(int argc, char* argv[]) { int returnCode = 0; ObjConverter converter; cout << "converting obj to dem format" << endl; if (!converter.LoadMaterials(model_path + argv[3])) { cerr << "loading materials failed" << endl; std::cin.get(); exit(0); } if (!converter.Convert(model_path + argv[1], model_path + argv[2])) { cerr << "conversion failed" << endl; std::cin.get(); exit(0); } cout << "conversion successful" << endl; cout << "press any key" << std::cin.get(); return 0; }