Ignore:
Timestamp:
05/30/08 02:37:07 (16 years ago)
Author:
mattausch
Message:

worked on gvs efficiency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.h

    r2694 r2726  
    77#include "common.h" 
    88#include "Halton.h" 
     9#include "Vector3.h" 
     10 
    911namespace GtpVisibilityPreprocessor { 
    1012 
     
    5961        virtual ~SamplingStrategy(); 
    6062 
     63        virtual int GenerateSamples(int number, SimpleRayContainer &rays, int &invalidSamples); 
    6164        /** Each strategy has to implement this function. 
    62         @returns true if generated valid sample. 
     65                @returns true if generated valid sample. 
    6366        */ 
    64  
    65         virtual int GenerateSamples(const int number, SimpleRayContainer &rays); 
    66  
    6767        virtual bool GenerateSample(SimpleRay &ray) = 0; 
    6868 
     
    262262 
    263263        ViewCell *mViewCell; 
     264 
     265        Vector3 origin; 
     266        Vector3 direction;  
     267        Vector3 point; 
     268        Vector3 normal; 
     269        float r[2]; 
     270 
    264271        static HaltonSequence sHalton; 
    265272}; 
     
    307314  } 
    308315   
    309   virtual int GenerateSamples(const int number, SimpleRayContainer &rays); 
     316  virtual int GenerateSamples(int number, SimpleRayContainer &rays, int &invalidSamples); 
    310317   
    311318private: 
Note: See TracChangeset for help on using the changeset viewer.