Changeset 2119 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 02/15/07 14:45:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2117 r2119 479 479 const int files = SplitFilenames(filename, filenames); 480 480 cout << "number of input files: " << files << endl; 481 481 482 bool result = false; 482 483 bool isObj = false; … … 533 534 534 535 result = parser->ParseFile(filename, 535 mSceneGraph->GetRoot(),536 mLoadMeshes,537 fi);538 536 mSceneGraph->GetRoot(), 537 mLoadMeshes, 538 fi); 539 539 540 cout << "loaded " << (int)mSceneGraph->GetRoot()->mGeometry.size() << " entities" << endl; 541 540 542 // only works for triangles 541 543 if (result && !mLoadMeshes) 542 544 { 543 545 cout << "exporting binary obj to " << bnFile << "... " << endl; 546 544 547 ExportBinaryObj(bnFile, mSceneGraph->GetRoot()); 548 545 549 cout << "finished" << endl; 546 550 } 547 551 548 552 delete parser; 549 }550 else if (0)551 {552 ExportBinaryObj("../data/test.bn", mSceneGraph->GetRoot());553 553 } 554 554 } … … 741 741 742 742 Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 743 744 743 cout << "loading objects from " << buf << endl; 745 744 746 745 // load objects which will be used as pvs entries 747 746 ObjectContainer pvsObjects; 748 749 LoadObjects(buf, pvsObjects, mObjects); 747 if (0) LoadObjects(buf, pvsObjects, mObjects); 750 748 751 749 cout << "loading view cells from " << buf << endl; … … 1649 1647 { 1650 1648 ObjectsParser parser; 1651 1649 Debug << "here322 " << filename << endl; 1652 1650 const bool success = parser.ParseObjects(filename, 1653 1651 pvsObjects,
Note: See TracChangeset
for help on using the changeset viewer.