Changeset 446 for trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.h
- Timestamp:
- 12/04/05 20:19:50 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.h
r444 r446 107 107 108 108 109 // --------------------------------------------------------------110 // For sorting rays111 // --------------------------------------------------------------112 struct SortableEntry113 {114 enum EType {115 ERayMin,116 ERayMax117 };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 };132 109 133 110 … … 259 236 ) const { 260 237 238 #if 1 261 239 // intersect the ray with the plane 262 240 float denom = mRay->GetDir(axis); … … 275 253 276 254 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 277 262 } 278 263
Note: See TracChangeset
for help on using the changeset viewer.