Ignore:
Timestamp:
01/29/07 15:44:50 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2053 r2064  
    352352 
    353353 
    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 points 
    384                 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  
    398354bool ViewCellsManager::GenerateRandomViewCells(vector<ViewCellPoints *> &viewCells, 
    399355                                                                                           const int nViewCells, 
     
    429385 
    430386                        SimpleRayContainer viewPoints; 
    431                         cout<<"here18"<<endl; 
     387                         
    432388                        // generate random view points 
    433389                        if (IsValidViewSpace(viewCell) &&  
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r2020 r2064  
    23872387                        VspLeaf *leaf = static_cast<VspLeaf *>(node); 
    23882388                        ViewCell *viewCell; 
     2389 
    23892390                        if (0) 
    23902391                                viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell()); 
Note: See TracChangeset for help on using the changeset viewer.