Ignore:
Timestamp:
01/17/08 15:56:37 (16 years ago)
Author:
bittner
Message:

merge on nemo

File:
1 edited

Legend:

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

    r2601 r2606  
    24742474int ViewCellsManager::GetNumViewCells() const 
    24752475{ 
    2476         return (int)mViewCells.size(); 
     2476  return (int)mViewCells.size(); 
    24772477} 
    24782478 
     
    24932493                   
    24942494                  // set only the termination object 
     2495                  //              if (vssRay->mTerminationObject == NULL)  
     2496                  //                    cerr<<"Error NULL termination object!"<<endl; 
    24952497                  vssRay->mTerminationObject = GetIntersectable(*vssRay, true); 
    2496                 } 
    2497         } 
     2498#if 0 
     2499                  if (vssRay->mTerminationObject == NULL) { 
     2500                        cerr<<"Error in DeterminePvsObjects - termination object maps to NULL!"<<endl; 
     2501                  } 
     2502#endif 
     2503                } 
     2504        } 
     2505   
    24982506} 
    24992507 
     
    32473255                for (int i = 0; it != it_end; ++ it, ++ i) 
    32483256                { 
    3249                         if ((*it) != viewCell)  
     3257                  if ((*it) != viewCell)  
    32503258                        { 
    3251                                 //cout<<"v"<<i<<" pvs="<<(*it)->GetPvs().mEntries.size()<<endl; 
    3252                                 basePvs.MergeInPlace((*it)->GetPvs()); 
     3259                          //cout<<"v"<<i<<" pvs="<<(*it)->GetPvs().mEntries.size()<<endl; 
     3260                          basePvs.MergeInPlace((*it)->GetPvs()); 
    32533261                        } 
    3254  
    3255                         // update samples and globalC 
    3256                         samples = (float)pvs.GetSamples(); 
    3257                         //      cout<<"neighboring viewcells = "<<i-1<<endl; 
    3258                         //      cout<<"Samples' = "<<samples<<endl; 
     3262                   
     3263                  // update samples and globalC 
     3264                  samples = (float)pvs.GetSamples(); 
     3265                  //    cout<<"neighboring viewcells = "<<i-1<<endl; 
     3266                  //    cout<<"Samples' = "<<samples<<endl; 
    32593267                } 
    32603268        } 
     
    33423350 
    33433351                        if (filteredBoxes) 
    3344                                 filteredBoxes->push_back(box); 
    3345  
     3352                          filteredBoxes->push_back(box); 
     3353                         
    33463354                        objects.clear(); 
    33473355 
    33483356                        // $$ warning collect objects takes only unmailed ones! 
    3349                         if (mUseKdPvs)  
    3350                                 GetPreprocessor()->mKdTree->CollectKdObjects(box, objects); 
    3351                         else 
    3352                                 CollectObjects(box, objects); 
    3353  
     3357                        if (mUseKdPvs) { 
     3358                          //                      GetPreprocessor()->mKdTree->CollectKdObjects(box, objects); 
     3359                          GetPreprocessor()->mKdTree->CollectSmallKdObjects(box, objects, 0.1f); 
     3360 
     3361                        } else 
     3362                          CollectObjects(box, objects); 
     3363                         
    33543364                        //      cout<<"collected objects="<<objects.size()<<endl; 
    33553365                        ObjectContainer::const_iterator noi = objects.begin(); 
    33563366                        for (; noi != objects.end(); ++ noi)  
    3357                         { 
     3367                          { 
    33583368                                Intersectable *o = *noi; 
    33593369                                // $$ JB warning: pdfs are not correct at this point!      
Note: See TracChangeset for help on using the changeset viewer.