Ignore:
Timestamp:
12/21/05 20:21:30 (19 years ago)
Author:
mattausch
Message:

bsp merging possible again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp

    r474 r475  
    227227        long startTime = GetTime(); 
    228228 
    229         Debug << "**** Extracting polygons from rays ****\n"; 
     229        cout << "Extracting polygons from rays ..."; 
    230230 
    231231        Intersectable::NewMail(); 
     
    276276        mStat.polys = (int)polys.size(); 
    277277 
    278         Debug << "**** Finished polygon extraction ****" << endl; 
    279         Debug << (int)polys.size() << " polys extracted from " << (int)sampleRays.size() << " rays" << endl; 
    280         Debug << "extraction time: " << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl; 
     278        cout << "finished" << endl; 
     279 
     280        Debug << "\nPolygon extraction: " << (int)polys.size() << " polys extracted from "  
     281                  << (int)sampleRays.size() << " rays in " 
     282                  << TimeDiff(startTime, GetTime())*1e-3 << " secs" << endl << endl; 
    281283 
    282284        Construct(polys, rays); 
     
    321323                if (r == mRoot) 
    322324                        Debug << "VSP BSP tree construction time spent at root: "  
    323                                   << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl; 
     325                                  << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl << endl; 
    324326        } 
    325327 
     
    336338                 (data.mPvs <= mTermMinPvs)   || 
    337339                 (data.mArea <= mTermMinArea) || 
    338                  (numLeaves >= mMaxViewCells) || 
     340                 ((mStat.nodes / 2 + 1) >= mMaxViewCells) || 
    339341                // (data.GetAvgRayContribution() >= mTermMaxRayContribution) || 
    340342                 (data.mDepth >= mTermMaxDepth)); 
Note: See TracChangeset for help on using the changeset viewer.