Ignore:
Timestamp:
12/20/06 15:58:22 (18 years ago)
Author:
mattausch
Message:

implemented pvs correction (debug version)

File:
1 edited

Legend:

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

    r1913 r1915  
    758758 
    759759        const float beta = (1.0f - alpha) * (totalPvs - childPvs); 
     760#if 1 
     761        const float newPvs = childPvs + beta; 
     762#else 
     763        const float newPvs = alpha * childPvs + (1.0f - alpha) * totalPvs; 
     764#endif 
    760765 
    761766        cout << "alpha " << alpha << " beta: " << beta << " child: " << childPvs << " parent: " << totalPvs << endl; 
    762767         
    763         const float newPvs = childPvs + beta; 
    764  
    765768        if ((newPvs < childPvs - Limits::Small) || (newPvs > totalPvs + Limits::Small)) 
    766769                cout << "Error!! " << newPvs << endl; 
Note: See TracChangeset for help on using the changeset viewer.