Changeset 2115 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 02/12/07 19:00:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2113 r2115 27 27 #include "PerfTimer.h" 28 28 29 //#include "HashPvs.h"30 31 32 29 33 30 #define USE_RAY_LENGTH_AS_CONTRIBUTION 0 … … 173 170 } 174 171 175 Debug << "casting strategies: "; 172 Debug << "casting initial strategies: "; 173 176 174 for (int i = 0; i < (int)mStrategies.size(); ++ i) 177 175 Debug << mStrategies[i] << " "; … … 1020 1018 1021 1019 1020 ViewCellsManager *ViewCellsManager::LoadViewCells(const string &filename, 1021 ObjectContainer &pvsObjects, 1022 bool finalizeViewCells, 1023 BoundingBoxConverter *bconverter) 1024 1025 { 1026 ObjectContainer dummys; 1027 1028 return LoadViewCells(filename, 1029 pvsObjects, 1030 dummys, 1031 finalizeViewCells, 1032 bconverter); 1033 } 1022 1034 1023 1035 … … 1047 1059 } 1048 1060 1049 //cout << "viewcells parsed " <<endl;1050 1051 1061 if (0) 1052 1062 { … … 1117 1127 if (mUseKdPvs) 1118 1128 { 1119 vector<KdIntersectable *>::iterator kit, kit_end = GetPreprocessor()->mKdTree->mKdIntersectables.end(); 1129 vector<KdIntersectable *>::iterator kit, kit_end = 1130 GetPreprocessor()->mKdTree->mKdIntersectables.end(); 1120 1131 1121 1132 int id = 0; … … 1127 1138 obj->SetId(id); 1128 1139 1129 stream << "<BoundingBox" << " id=\"" << id<< "\""1130 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\""1131 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl;1140 stream << "<BoundingBox" << " id=\"" << id << "\"" 1141 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 1142 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 1132 1143 } 1133 1144 } … … 1143 1154 //-- the bounding boxes 1144 1155 1145 stream << "<BoundingBox" << " id=\"" << (*oit)->GetId()<< "\""1146 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\""1147 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl;1156 stream << "<BoundingBox" << " id=\"" << (*oit)->GetId() << "\"" 1157 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 1158 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 1148 1159 } 1149 1160 }
Note: See TracChangeset
for help on using the changeset viewer.