Ignore:
Timestamp:
02/01/07 17:38:55 (17 years ago)
Author:
mattausch
Message:

prepared view cell generation that is useable.
changed back view cell generation to vsp osp.

File:
1 edited

Legend:

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

    r2071 r2072  
    2727#define COUNT_ORIGIN_OBJECTS 1 
    2828 
    29 #define STORE_PVS 1 
     29#define STORE_PVS 0 
    3030 
    3131 
     
    451451        } 
    452452 
    453         // normalize 
    454453        if (mUseAreaForPvs) 
    455454                mTermMinProbability *= mBoundingBox.SurfaceArea();  
    456         else  
     455        else // normalize volume 
    457456                mTermMinProbability *= mBoundingBox.GetVolume(); 
    458  
    459457 
    460458        mBspStats.nodes = 1; 
     
    12731271                if (ray->mTerminationObject)  
    12741272                { 
    1275                         //cout << "m"; 
    12761273                        if (vc->AddPvsSample(ray->mTerminationObject, ray->mPdf, contribution)) 
    12771274                                madeContrib = true; 
     
    21262123        pOverall = data.mProbability; 
    21272124 
    2128         if (!mUseAreaForPvs) // use front and back cell areas to approximate volume 
     2125        if (!mUseAreaForPvs) 
    21292126        { 
    21302127                pFront = geomFront.GetVolume(); 
     
    21442141        else 
    21452142        { 
     2143                // use front and back cell areas to approximate volume 
    21462144                pFront = geomFront.GetArea(); 
    21472145                pBack = geomBack.GetArea(); 
Note: See TracChangeset for help on using the changeset viewer.