Changeset 706 for GTP/trunk/Lib
- Timestamp:
- 03/16/06 18:42:06 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r703 r706 181 181 return mValid; 182 182 } 183 184 185 /*bool ViewCell::IsLeaf() const186 {187 return true;188 }*/189 183 190 184 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r705 r706 31 31 }; 32 32 33 typedef priority_queue<ViewCell *, vector<ViewCell *>, myless<vector<ViewCell *>::value_type> > FilterQueue;33 //typedef priority_queue<ViewCell *, vector<ViewCell *>, myless<vector<ViewCell *>::value_type> > FilterQueue; 34 34 35 35 … … 85 85 environment->GetIntValue("ViewCells.Filter.maxSize", mMaxFilterSize); 86 86 environment->GetFloatValue("ViewCells.Filter.width", mFilterWidth); 87 87 //mSampleEmptyViewCells = true; 88 88 char buf[100]; 89 89 environment->GetStringValue("ViewCells.samplingType", buf); … … 593 593 594 594 ViewCell *bestViewCell = neighborhood[bestViewCellIdx]; 595 cout << "here2" << endl;595 596 596 // remove from vector 597 597 swap(neighborhood[bestViewCellIdx], neighborhood.back()); … … 602 602 cout << "warning!!" << endl; 603 603 604 cout << "here4" << endl;605 606 604 // create new root of the hierarchy 607 605 root = MergeViewCells(root, bestViewCell); 608 cout << "here5" << endl;609 606 } 610 607 … … 702 699 for (it = mViewCells.begin(); it != it_end; ++ it) { 703 700 if ((*it)->GetValid()) 704 valid ++;701 valid ++; 705 702 } 706 703 return valid; … … 944 941 // generate parent view cell 945 942 ViewCellInterior *vc = new ViewCellInterior();//GenerateViewCell(); 946 cout << "here66" << endl;943 947 944 vc->GetPvs() = left->GetPvs(); 948 cout << "here44" << endl; 945 949 946 // merge pvs 950 947 vc->GetPvs().Merge(right->GetPvs()); … … 961 958 } 962 959 963 cout << "here77" << endl;964 960 vc->SetupChildLink(left); 965 cout << "here88" << endl;966 961 vc->SetupChildLink(right); 967 cout << "here99" << endl; 968 962 969 963 return vc; 970 964 } … … 1226 1220 ViewCell *viewcell = *it; 1227 1221 1228 if (viewcell->GetValid()) 1222 if (viewcell->GetValid())// && mSampleEmptyViewCells) // HACK 1229 1223 { 1230 1224 // HACK 1231 if (TEST_EMPTY_VIEW_CELLS) 1225 #if TEST_EMPTY_VIEW_CELLS 1232 1226 for (int i = 0; i < mEmptyViewCells.size(); ++i) 1233 1227 { … … 1238 1232 } 1239 1233 } 1240 1234 #endif 1241 1235 // if ray not outside of view space 1242 1236 float contribution; … … 1267 1261 ViewCell *viewcell = *it; 1268 1262 1269 if (viewcell->GetValid()) 1263 if (viewcell->GetValid()) 1270 1264 { 1271 1265 // if ray not outside of view space -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r704 r706 511 511 ViewCellsTree *mViewCellsTree; 512 512 513 //bool mSampleEmptyViewCells; 514 513 515 /// maximum number of samples taken for construction of the view cells 514 516 int mConstructionSamples; -
GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.cpp
r694 r706 1138 1138 void X3dExporter::ExportGeometry(const ObjectContainer &objects) 1139 1139 { 1140 #if 01140 #if 1 1141 1141 for (int j = 0; j < objects.size(); ++ j) 1142 1142 ExportIntersectable(objects[j]);
Note: See TracChangeset
for help on using the changeset viewer.