Ignore:
Timestamp:
10/18/05 17:28:31 (19 years ago)
Author:
bittner
Message:

mesh cleanup added

File:
1 edited

Legend:

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

    r339 r340  
    153153        int sampleContributions = 0; 
    154154 
    155         long t1 = GetTime(); 
     155        long t1 = GetRealTime(); 
    156156        // cast ray to KD tree to find intersection with other objects 
    157157        mKdTree->CastRay(ray); 
    158         long t2 = GetTime(); 
    159  
    160         cout<<object->GetId()<<" "<<TimeDiff(t1, t2); 
     158        long t2 = GetRealTime(); 
     159 
     160        if (0 && object->GetId() > 2197) { 
     161                object->Describe(cout)<<endl; 
     162                cout<<ray<<endl; 
     163        } 
     164 
     165        //      cout<<object->GetId()<<" "<<TimeDiff(t1, t2)<<endl; 
    161166 
    162167        if (mViewCellsType == BSP_VIEW_CELLS) 
     
    380385                        bool viewcellSample = true; 
    381386                        int sampleContributions; 
    382  
     387                        bool debug = false; //(object->GetId() >= 2199); 
    383388                        if (viewcellSample) { 
    384389                                nodeToSample = mKdTree->GetRandomLeaf(Plane3(normal, point)); 
     
    394399                                                                break;                                                   
    395400                                                } 
    396                                                  
    397401                                                if (tries == maxTries) 
    398402                                                        direction = UniformRandomVector(normal); 
     403                                                 
     404                                                if (debug) { 
     405                                                        cout<< 
     406                                                                "normal "<<normal<<endl<< 
     407                                                                "tries "<<tries<<endl<< 
     408                                                                "dir="<<direction<<endl; 
     409                                                } 
     410 
    399411                                        } 
    400412                                        else { 
Note: See TracChangeset for help on using the changeset viewer.