Changeset 2115 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 02/12/07 19:00:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2113 r2115 22 22 #include "InternalRayCaster.h" 23 23 #include "GlobalLinesRenderer.h" 24 #include "ObjectsParser.h" 24 25 25 26 … … 730 731 if (mLoadViewCells) 731 732 { 732 Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 733 cout << "loading view cells from " << buf << endl<<flush; 733 Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 734 735 cout << "loading objects from " << buf << endl; 736 737 // load objects which will be used as pvs entries 738 ObjectContainer pvsObjects; 739 740 LoadObjects(buf, pvsObjects, mObjects); 741 742 cout << "loading view cells from " << buf << endl; 734 743 735 744 mViewCellsManager = ViewCellsManager::LoadViewCells(buf, 736 mObjects,745 pvsObjects, 737 746 mObjects, 738 747 true, … … 1626 1635 1627 1636 1628 } 1637 bool Preprocessor::LoadObjects(const string &filename, 1638 ObjectContainer &pvsObjects, 1639 const ObjectContainer &preprocessorObjects) 1640 { 1641 ObjectsParser parser; 1642 1643 const bool success = parser.ParseObjects(filename, 1644 pvsObjects, 1645 preprocessorObjects); 1646 1647 if (!success) 1648 { 1649 Debug << "Error: loading objects failed!" << endl; 1650 } 1651 1652 // hack: no bvh object could be found => take preprocessor objects 1653 if (!pvsObjects.empty()) 1654 { 1655 pvsObjects = preprocessorObjects; 1656 } 1657 1658 return success; 1659 } 1660 1661 1662 }
Note: See TracChangeset
for help on using the changeset viewer.