Ignore:
Timestamp:
11/02/05 17:45:25 (19 years ago)
Author:
bittner
Message:

sampling contribution changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Ray.h

    r367 r369  
    2323public: 
    2424  enum RayType { LOCAL_RAY, GLOBAL_RAY, LINE_SEGMENT }; 
    25  
     25         
    2626  enum { NO_INTERSECTION=0, INTERSECTION_OUT_OF_LIMITS, INTERSECTION }; 
    2727 
     
    3636    // can be either mesh or a viewcell 
    3737    Intersectable *mObject; 
    38  
     38                 
    3939    // the face of the intersectable 
    4040    int mFace; 
    4141 
    4242    Intersection(const float t, 
    43                 Intersectable *object, 
    44                 const int face):mT(t), mObject(object), mFace(face) {} 
    45  
     43                                                                Intersectable *object, 
     44                                                                const int face):mT(t), mObject(object), mFace(face) {} 
     45                 
    4646    Intersection() {} 
    47  
     47                 
    4848    bool operator<( 
    49                   const Intersection &b) const { 
     49                                                                        const Intersection &b) const { 
    5050      return  
    51         mT 
    52         < 
    53         b.mT; 
     51                                mT 
     52                                < 
     53                                b.mT; 
    5454    } 
    5555     
     
    7070  Ray(const Vector3 &wherefrom, 
    7171      const Vector3 &whichdir, 
    72       const int _type, 
    73       const void *_originCell = NULL) { 
     72      const int _type) { 
    7473    loc = wherefrom; 
    7574    if (_type == LINE_SEGMENT) 
     
    9493  // Inititalize the ray again when already constructed 
    9594  void Init(const Vector3 &wherefrom, 
    96             const Vector3 &whichdir, 
    97             const int _type,  
    98             bool dirNormalized = false) { 
     95                                                const Vector3 &whichdir, 
     96                                                const int _type,  
     97                                                bool dirNormalized = false) { 
    9998    loc = wherefrom; 
    10099    dir = (dirNormalized || _type == LINE_SEGMENT) ? whichdir: Normalize(whichdir) ; 
     
    252251  int mRays; 
    253252  int mContributions; 
    254   PassingRaySet() { 
     253 
     254        PassingRaySet() { 
    255255    Reset(); 
    256256  } 
    257   void 
     257 
     258        void 
    258259  Reset(); 
    259260   
    260261  void AddRay(const Ray &ray, const int contributions); 
     262        void AddRay2(const Ray &ray, 
     263                                                         const int objects, 
     264                                                         const int viewcells); 
     265 
    261266  int GetEntryIndex(const Vector3 &direction) const; 
    262267 
Note: See TracChangeset for help on using the changeset viewer.