Ignore:
Timestamp:
05/20/08 17:15:44 (16 years ago)
Author:
mattausch
Message:

strange errors!!

File:
1 edited

Legend:

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

    r2678 r2690  
    23732373 
    23742374 
    2375 void ViewCellsManager::UpdateStatsForViewCell(ViewCell *vc, Intersectable *obj) 
    2376 { 
     2375void ViewCellsManager::UpdateStatsForViewCell(ViewCell *vc, Intersectable *obj, int numTriangles) 
     2376{ 
     2377#ifdef USE_VERBOSE_PVS 
    23772378        KdIntersectable *kdObj = static_cast<KdIntersectable *>(obj); 
    23782379 
     
    23992400 
    24002401        //cout << "x " << radius << " " << dist << " " << fullRadius << " " << f << " " << f * f << endl; 
    2401  
    2402         const int numTriangles = kdObj->ComputeNumTriangles(); 
    2403 #ifdef USE_VERBOSE_PVS 
     2402        //const int numTriangles = kdObj->ComputeNumTriangles(); 
     2403 
    24042404        vc->GetPvs().mStats.mDistanceWeightedTriangles += f * numTriangles;  
    24052405        vc->GetPvs().mStats.mDistanceWeightedPvs += f ; 
     
    24272427        bool hasAbsContribution; 
    24282428 
    2429         // todo: maybe not correct for kd node pvs 
     2429        // todo: probably not correct for kd node pvs 
    24302430        if (addSamplesToPvs)  
    24312431        { 
     
    24332433                //hasAbsContribution = viewCell->GetPvs().AddSample(obj,ray.mPdf); 
    24342434                 
    2435                 if (hasAbsContribution) 
    2436                 { 
    2437                         UpdateStatsForViewCell(viewCell, obj); 
    2438                 } 
     2435                //if (hasAbsContribution)       UpdateStatsForViewCell(viewCell, obj); 
     2436                 
    24392437        } 
    24402438        else  
     
    61956193                const int colorCode = 0; 
    61966194 
    6197                 const float maxRenderCost = -1;//UpdateObjectCosts(); 
     6195                const float maxRenderCost = -1; 
    61986196                const bool exportBounds = false; 
    61996197 
Note: See TracChangeset for help on using the changeset viewer.