Ignore:
Timestamp:
07/19/06 00:26:49 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1141 r1142  
    100100        Environment::GetSingleton()->GetBoolValue("ViewCells.exportBboxesForPvs", mExportBboxesForPvs); 
    101101        Environment::GetSingleton()->GetBoolValue("ViewCells.exportPvs", mExportPvs); 
    102         Environment::GetSingleton()->GetBoolValue("ViewCells.Evaluation.countKdPvs", mCountKdPvs); 
     102         
    103103 
    104104        char buf[100]; 
     
    214214        Debug << "export bounding boxes: " << mExportBboxesForPvs << endl; 
    215215        Debug << "export pvs for view cells: " << mExportPvs << endl; 
    216         Debug << "count kd pvs: " << mCountKdPvs << endl; 
     216         
    217217         
    218218        Debug << endl; 
     
    788788        sort(viewCells.begin(), viewCells.end(), ViewCell::SmallerPvs); 
    789789 
    790         maxPvs = mViewCellsTree->GetPvsSize(viewCells.back(), mCountKdPvs); 
     790        maxPvs = mViewCellsTree->GetPvsSize(viewCells.back()); 
    791791        minVal = 0; 
    792792 
     
    832832 
    833833                while ((i < (int)viewCells.size()) &&  
    834                            (mViewCellsTree->GetPvsSize(viewCells[i], mCountKdPvs) < currentPvs)) 
     834                           (mViewCellsTree->GetPvsSize(viewCells[i]) < currentPvs)) 
    835835                { 
    836836                        volDif += viewCells[i]->GetVolume(); 
     
    843843                 
    844844                if (0 && (i < (int)viewCells.size())) 
    845                         Debug << "new pvs size increase: " << mViewCellsTree->GetPvsSize(viewCells[i], mCountKdPvs)  
     845                        Debug << "new pvs size increase: " << mViewCellsTree->GetPvsSize(viewCells[i])  
    846846                        << " " << currentPvs << endl; 
    847847         
     
    17061706                ViewCell *viewcell = *it; 
    17071707 
    1708                 const int pvsSize = mViewCellsTree->GetPvsSize(viewcell, mCountKdPvs); 
     1708                const int pvsSize = mViewCellsTree->GetPvsSize(viewcell); 
    17091709 
    17101710                if (pvsSize < stat.minPvs) 
     
    19571957float ViewCellsManager::GetRendercost(ViewCell *viewCell) const 
    19581958{ 
    1959         return mViewCellsTree->GetPvsSize(viewCell, mCountKdPvs); 
     1959        return mViewCellsTree->GetPvsSize(viewCell); 
    19601960} 
    19611961 
     
    24092409                        { 
    24102410                                importance =  
    2411                                         (float)mViewCellsTree->GetPvsSize(vc, mCountKdPvs) /  
     2411                                        (float)mViewCellsTree->GetPvsSize(vc) /  
    24122412                                        (float)mCurrentViewCellsStats.maxPvs; 
    24132413                        } 
     
    43904390                Exporter *exporter = Exporter::GetExporter(s); 
    43914391                 
    4392                 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc, mCountKdPvs) << endl; 
     4392                Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) << endl; 
    43934393 
    43944394                //-- export the sample rays 
     
    49044904        long startTime; 
    49054905 
    4906         mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 
    49074906        //mHierarchyManager->Construct(constructionRays, objects, &mViewSpaceBox); 
    4908          
     4907        //mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 
     4908        mHierarchyManager->Construct3(constructionRays, objects, &mViewSpaceBox); 
     4909 
    49094910        //-- stats 
    49104911        Debug << mVspTree->GetStatistics() << endl; 
     
    53015302        } 
    53025303 
    5303         if (1)  
     5304        if (1 && mOspTree->GetRoot())  
    53045305        {        
    53055306                //-- export final object partition 
     
    53835384                Exporter *exporter = Exporter::GetExporter(s); 
    53845385                 
    5385                 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc, mCountKdPvs) << endl; 
     5386                Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) << endl; 
    53865387 
    53875388                //-- export the sample rays 
Note: See TracChangeset for help on using the changeset viewer.