Changeset 2690 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 05/20/08 17:15:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2678 r2690 2373 2373 2374 2374 2375 void ViewCellsManager::UpdateStatsForViewCell(ViewCell *vc, Intersectable *obj) 2376 { 2375 void ViewCellsManager::UpdateStatsForViewCell(ViewCell *vc, Intersectable *obj, int numTriangles) 2376 { 2377 #ifdef USE_VERBOSE_PVS 2377 2378 KdIntersectable *kdObj = static_cast<KdIntersectable *>(obj); 2378 2379 … … 2399 2400 2400 2401 //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 2404 2404 vc->GetPvs().mStats.mDistanceWeightedTriangles += f * numTriangles; 2405 2405 vc->GetPvs().mStats.mDistanceWeightedPvs += f ; … … 2427 2427 bool hasAbsContribution; 2428 2428 2429 // todo: maybenot correct for kd node pvs2429 // todo: probably not correct for kd node pvs 2430 2430 if (addSamplesToPvs) 2431 2431 { … … 2433 2433 //hasAbsContribution = viewCell->GetPvs().AddSample(obj,ray.mPdf); 2434 2434 2435 if (hasAbsContribution) 2436 { 2437 UpdateStatsForViewCell(viewCell, obj); 2438 } 2435 //if (hasAbsContribution) UpdateStatsForViewCell(viewCell, obj); 2436 2439 2437 } 2440 2438 else … … 6195 6193 const int colorCode = 0; 6196 6194 6197 const float maxRenderCost = -1; //UpdateObjectCosts();6195 const float maxRenderCost = -1; 6198 6196 const bool exportBounds = false; 6199 6197
Note: See TracChangeset
for help on using the changeset viewer.