Ignore:
Timestamp:
08/29/06 17:34:19 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1293 r1294  
    475475} 
    476476 
     477 
    477478HierarchyManager *Preprocessor::CreateHierarchyManager(const char *name) 
    478479{ 
     
    850851                                                                         ) 
    851852{ 
     853#ifdef GTP_INTERNAL 
    852854        VssRay *vssRay  = NULL; 
    853855        int hits = 0; 
     
    859861         
    860862        double normal[3]; 
    861 #ifdef GTP_INTERNAL 
     863 
    862864        hittriangle = mlrtaIntersectAS(&viewPoint.x, 
    863865                                                                   &direction.x, 
    864866                                                                   normal, 
    865867                                                                   dist); 
    866 #else 
    867         hittriangle = -1; 
    868 #endif 
     868 
    869869        if (hittriangle !=-1 ) { 
    870870          if (hittriangle >= mFaceParents.size()) 
     
    881881        } 
    882882 
     883         
    883884        Vector3 dir = -direction; 
    884 #ifdef GTP_INTERNAL 
    885885        hittriangle = mlrtaIntersectAS(&viewPoint.x, 
    886886                                                                   &dir.x, 
    887887                                                                   normal, 
    888888                                                                   dist); 
    889 #else 
    890         hittriangle = -1; 
    891 #endif 
    892889 
    893890        if (hittriangle !=-1 ) { 
     
    913910                                          box 
    914911                                          ); 
     912#else 
     913        return -1; 
     914#endif 
    915915} 
    916916 
     
    929929                return 0; 
    930930         
     931#ifdef GTP_INTERNAL 
    931932        float pforg[3]; 
    932933        float pfdir[3]; 
     
    936937        pfdir[0] = direction[0]; pfdir[1] = direction[1]; pfdir[2] = direction[2]; 
    937938 
    938         float dist = 0; 
    939 #ifdef GTP_INTERNAL 
     939        float dist; 
    940940        const int hittriangle = mlrtaIntersectAS(pforg, pfdir, pfnorm, dist); 
    941 #else 
    942         const int hittriangle = -1; 
    943 #endif 
    944941 
    945942        if (hittriangle == -1) 
     
    970967          } 
    971968        } 
     969 
     970#else 
     971        const int hittriangle = -1; 
     972        return NULL; 
     973#endif 
     974 
     975         
    972976         
    973977} 
     
    13301334        { 
    13311335        case INTEL_RAYCASTER: { 
    1332           float dist; 
     1336          
    13331337          int hittriangle; 
     1338           
     1339 
     1340#ifdef GTP_INTERNAL 
     1341          float dist;  
    13341342          double n[3]; 
    13351343 
    1336 #ifdef GTP_INTERNAL 
    13371344          hittriangle = mlrtaIntersectAS(&viewPoint.x, 
    13381345                                                                         &direction.x, 
     
    13401347                                                                         dist); 
    13411348 
    1342 #else 
    1343         hittriangle = -1; 
    1344 #endif 
    1345  
    1346           if (hittriangle !=-1 ) { 
     1349           if (hittriangle !=-1 ) { 
    13471350                if (hittriangle >= mFaceParents.size()) 
    13481351                  cerr<<"Warning: traingle index out of range! "<<hittriangle<<endl; 
     
    13531356                } 
    13541357          } 
     1358#else 
     1359        hittriangle = -1; 
     1360#endif 
     1361 
     1362          
    13551363          break; 
    13561364        } 
Note: See TracChangeset for help on using the changeset viewer.