Ignore:
Timestamp:
12/04/05 20:19:50 (19 years ago)
Author:
bittner
Message:

non-functional merged version

File:
1 edited

Legend:

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

    r444 r446  
    107107 
    108108 
    109 // -------------------------------------------------------------- 
    110 // For sorting rays 
    111 // -------------------------------------------------------------- 
    112 struct  SortableEntry 
    113 { 
    114   enum EType { 
    115     ERayMin, 
    116     ERayMax 
    117   }; 
    118  
    119   int type; 
    120   float value; 
    121   void *data; 
    122    
    123   SortableEntry() {} 
    124   SortableEntry(const int t, const float v, void *d):type(t), 
    125                                                                                                          value(v), 
    126                                                                                                          data(d) {} 
    127          
    128   friend bool operator<(const SortableEntry &a, const SortableEntry &b) { 
    129     return a.value < b.value; 
    130   } 
    131 }; 
    132109 
    133110 
     
    259236                                                           ) const { 
    260237                 
     238#if 1 
    261239          // intersect the ray with the plane 
    262240          float denom = mRay->GetDir(axis); 
     
    275253 
    276254          return 0; 
     255#else 
     256          // subbdivision based only on the origin 
     257          t = 0; 
     258          float rpos = mRay->GetOrigin(axis); 
     259          return (rpos < position) ? -1 : 1; 
     260 
     261#endif 
    277262        } 
    278263 
Note: See TracChangeset for help on using the changeset viewer.