Ignore:
Timestamp:
01/03/08 15:53:44 (17 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp

    r2539 r2575  
    209209        const Vector3 cross_a_b = CrossProd(a, b); 
    210210 
    211         if (SqrMagnitude(cross_a_b) <= 0.000001 * FLT_EPSILON * FLT_EPSILON)  
     211#define SMALL_FLT   1e-5 
     212         
     213        if (SqrMagnitude(cross_a_b) <= 0.0001 * SMALL_FLT * SMALL_FLT)  
    212214        { 
    213215                // v0, v1 & v2 lies on a line (area == 0) 
     
    293295                                        for (tit = triangles.begin(); tit != tit_end; ++ tit) 
    294296                                        { 
    295                                                 // test if it is a valid triangle 
    296                                                 if (0 && !TriangleValid(*tit)) continue; 
    297  
    298                                                 TriangleIntersectable *obj = new TriangleIntersectable(*tit);    
    299                                                 root->mGeometry.push_back(obj); 
     297                                          // test if it is a valid triangle 
     298                                          if (!TriangleValid(*tit)) 
     299                                            continue; 
     300 
     301                                          TriangleIntersectable *obj = new TriangleIntersectable(*tit);  
     302                                          root->mGeometry.push_back(obj); 
    300303                                        } 
    301304                                } 
Note: See TracChangeset for help on using the changeset viewer.