Changeset 2064 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 01/29/07 15:44:50 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2053 r2064 352 352 353 353 354 /*bool ViewCellsManager::GenerateRandomViewCells(vector<ViewCellPoints *> &viewCells,355 const int nViewCells,356 const int nViewPoints)357 {358 ViewCellContainer rViewCells;359 360 cout << "generating " << nViewCells << " random view cells" << endl;361 GenerateRandomViewCells(rViewCells, nViewCells);362 363 cout << "finished" << endl;364 365 //for (int i = 0; i < viewCells.size(); ++ i)366 // cout << "vc " << i << ": " << viewCells[i]->GetId() << endl;367 368 cout << "generating " << nViewPoints << " view points per view cell" << endl;369 ViewCellContainer::const_iterator vit, vit_end = rViewCells.end();370 371 int i = 0;372 for (vit = rViewCells.begin(); vit != vit_end; ++ vit, ++ i)373 {374 ViewCell *vc = *vit;375 376 ViewCellPoints *vcPts = new ViewCellPoints();377 viewCells.push_back(vcPts);378 379 vcPts->first = vc;380 381 SimpleRayContainer viewPoints;382 cout << "processing view cell " << i << endl;383 // generate random view points384 GenerateViewPoints(vc, nViewPoints, viewPoints);385 386 SimpleRayContainer::const_iterator pit, pit_end = viewPoints.end();387 388 for (pit = viewPoints.begin(); pit != pit_end; ++ pit)389 {390 vcPts->second.push_back(*pit);391 }392 }393 394 return true;395 }*/396 397 398 354 bool ViewCellsManager::GenerateRandomViewCells(vector<ViewCellPoints *> &viewCells, 399 355 const int nViewCells, … … 429 385 430 386 SimpleRayContainer viewPoints; 431 cout<<"here18"<<endl;387 432 388 // generate random view points 433 389 if (IsValidViewSpace(viewCell) && -
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r2020 r2064 2387 2387 VspLeaf *leaf = static_cast<VspLeaf *>(node); 2388 2388 ViewCell *viewCell; 2389 2389 2390 if (0) 2390 2391 viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell());
Note: See TracChangeset
for help on using the changeset viewer.