Changeset 1047 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
- Timestamp:
- 06/21/06 18:26:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1027 r1047 42 42 return c1->GetPriority() < c2->GetPriority(); 43 43 } 44 };45 46 /** A definition for an axis aligned plane.47 */48 struct AxisAlignedPlane49 {50 public:51 52 /** Computes intersection of this plane with the ray segment.53 */54 int ComputeRayIntersection(const RayInfo &rayData, float &t) const55 {56 return rayData.ComputeRayIntersection(mAxis, mPosition, t);57 }58 59 /// the split axis: one of 0=x, 1=y, 2=z60 int mAxis;61 /// the absolute position of the split axis62 float mPosition;63 44 }; 64 45 … … 410 391 void SetBoundingBox(const AxisAlignedBox3 &box); 411 392 393 /** Computes intersection of this plane with the ray segment. 394 */ 395 int ComputeRayIntersection(const RayInfo &rayData, float &t) const 396 { 397 return rayData.ComputeRayIntersection(mPlane.mAxis, mPlane.mPosition, t); 398 } 399 400 412 401 protected: 413 402
Note: See TracChangeset
for help on using the changeset viewer.