Ignore:
Timestamp:
06/21/06 18:26:17 (18 years ago)
Author:
mattausch
Message:

fixed vsp part of vsp osp tree

File:
1 edited

Legend:

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

    r1027 r1047  
    4242                return c1->GetPriority() < c2->GetPriority(); 
    4343        } 
    44 }; 
    45  
    46 /** A definition for an axis aligned plane. 
    47 */ 
    48 struct AxisAlignedPlane 
    49 { 
    50 public: 
    51  
    52         /** Computes intersection of this plane with the ray segment. 
    53         */ 
    54         int ComputeRayIntersection(const RayInfo &rayData, float &t) const 
    55         { 
    56                 return rayData.ComputeRayIntersection(mAxis, mPosition, t); 
    57         } 
    58  
    59         /// the split axis: one of 0=x, 1=y, 2=z 
    60         int mAxis; 
    61         /// the absolute position of the split axis 
    62         float mPosition; 
    6344}; 
    6445 
     
    410391        void SetBoundingBox(const AxisAlignedBox3 &box); 
    411392 
     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 
    412401protected: 
    413402 
Note: See TracChangeset for help on using the changeset viewer.