Ignore:
Timestamp:
12/30/05 12:08:15 (19 years ago)
Author:
mattausch
Message:

changed castlinesegment of vspbpstree
changed rayinfo ray classification for bsp tree
implemented shuffling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/RayInfo.cpp

    r448 r485  
    133133{        
    134134        t = splitPlane.FindT(mRay->GetOrigin(), mRay->GetTermination()); 
     135//      Debug << "t: " << t << " mint " << GetMinT() << " maxt " << GetMaxT() <<  
     136//      " orig: " << mRay->GetOrigin() << " term " << mRay->GetTermination() << endl; 
    135137 
    136 //      Debug << "t: " << t << " mint " << GetMinT() << " maxt " << GetMaxT() << " orig: " << mRay->GetOrigin() << 
    137 //              " term " << mRay->GetTermination() << endl; 
    138         if ((t < GetMinT()) || (t > GetMaxT())) 
     138        // NOTE: if plane equals end point of ray, the ray should be classified 
     139        // non-intersecting, otherwise polygon-plane intersections of bsp tree 
     140        // approaches are not eliminating any rays intersecting the polygon! 
     141 
     142        //if (t > GetMaxT()) 
     143        if (t >= GetMaxT() - 1e-20) 
    139144                return splitPlane.Side(ExtrapOrigin()); 
     145        //if (t < GetMinT()) 
     146        if (t <= GetMinT() + 1e-20) 
     147                return splitPlane.Side(ExtrapTermination()); 
    140148 
    141149        return 0; 
Note: See TracChangeset for help on using the changeset viewer.