Ignore:
Timestamp:
09/19/05 03:47:29 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r289 r290  
    4848    if (signum(dv) == 0) 
    4949        { 
    50                 if (coplanar)  
    51                         (*coplanar) = true;      
    52          
     50                if (coplanar) (*coplanar) = true;        
     51                if (t) (*t) = 1; 
    5352                return a; 
    5453        } 
     54         
     55    float u = - Distance(a) / dv; // TODO: could be done more efficiently 
    5556     
    56     float u = - Distance(a) / dv; // TODO: could be done more efficiently 
    57     //Debug << "t: " << u << ", b - a: " << v << ", norm: " << mNormal << ", dist(a): " << - Distance(a) << ", dv: " << dv << endl; 
    58     if (coplanar)  
    59       (*coplanar) = false; 
    60      
    61     if (t)  
    62       (*t) = u; 
    63      
     57        if (coplanar) (*coplanar) = false; 
     58        if (t) (*t) = u; 
     59         
     60        //Debug << "t: " << u << ", b - a: " << v << ", norm: " << mNormal << ", dist(a): " << - Distance(a) << ", dv: " << dv << endl; 
    6461    //return a - Distance(a) * b / dv + Distance(a) * a / dv; // NOTE: gives better precision than calclulating a + u * v 
    6562    return a + u * v; 
Note: See TracChangeset for help on using the changeset viewer.