Ignore:
Timestamp:
01/22/07 16:00:07 (17 years ago)
Author:
bittner
Message:

vss ray updates

File:
1 edited

Legend:

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

    r2008 r2012  
    1212#include "PreprocessorThread.h" 
    1313#include "CombinedPreprocessor.h" 
     14#include "RayCaster.h" 
    1415 
    1516 
     
    6667  mPass = 0; 
    6768   
    68  
     69  vector<VssRayContainer> rayBuffer; 
     70  rays.reserve(mSamplesPerPass); 
     71  rayBuffer.reserve(2*mSamplesPerPass); 
    6972   
    70   vector<VssRayContainer> rayBuffer; 
    71    
    72  
    7373  long startTime = GetTime(); 
    7474  for (int i=0; i < mTotalSamples; i += mSamplesPerPass, mPass++) { 
    75  
     75        mRayCaster->InitPass(); 
     76         
    7677        cout<<"Progress : "<<(100.0f*i)/mTotalSamples<<"%"<<endl; 
    7778        rays.clear(); 
    7879        vssRays.clear(); 
     80         
    7981         
    8082        mMixtureDistribution->GenerateSamples(mSamplesPerPass, rays); 
     
    124126        } 
    125127 
     128#if 0 
    126129        cerr<<"deleting rays"<<endl; 
    127130        //clear all unreferenced rays 
     
    131134        } 
    132135        cerr<<"done."<<endl; 
    133            
     136#endif   
    134137         
    135138        //      if (!mMixtureDistribution->RequiresRays()) 
Note: See TracChangeset for help on using the changeset viewer.