Changeset 2655


Ignore:
Timestamp:
04/21/08 08:36:04 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
1 added
7 edited

Legend:

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

    r2643 r2655  
    33 
    44 
    5 #include <vector> 
     5//#include <vector> 
    66#include "AxisAlignedBox3.h" 
    77 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GtpVisibility05.vcproj

    r2643 r2655  
    115115                        <Tool 
    116116                                Name="VCCLCompilerTool" 
    117                                 AdditionalIncludeDirectories="..\includ;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;Timer;..\src\havran" 
     117                                AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;Timer;..\src\havran" 
    118118                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;NO_QT;USE_VERBOSE_PVS" 
    119119                                RuntimeLibrary="2" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranDynRayCaster.cpp

    r2630 r2655  
    2020#include "raypack.h" 
    2121#endif // _USE_HAVRAN_SSE 
    22 #endif // USE_HAVRAN_RAYCASTER 
     22#endif // _USE_HAVRAN_RAYCASTER 
     23 
    2324#include "HavranRayCaster.h" 
    2425 
     
    661662                                         ) 
    662663{ 
     664#ifdef USE_HAVRAN_RAYCASTER 
     665 
    663666  int hit_triangles[16]; 
    664667  float dist[16]; 
     
    759762    SimpleRay::IntersectionRes[i].tdist = tdist[i]; 
    760763  } 
     764#endif // USE_HAVRAN_RAYCASTER 
    761765 
    762766  return; 
     
    802806void 
    803807HavranDynRayCaster::CastRaysPacket2x2(RayPacket2x2 &raysPack, 
    804                                       bool castDoubleRay, 
    805                                       const bool pruneInvalidRays) 
     808                                                                          bool castDoubleRay, 
     809                                                                          const bool pruneInvalidRays) 
    806810{ 
    807811#ifdef USE_HAVRAN_RAYCASTER  
    808 #ifdef _USE_HAVRAN_SSE 
    809812 
    810813  if (castDoubleRay) { 
     
    929932 
    930933  return; 
     934 
     935#endif // USE_HAVRAN_RAYCASTER  
     936 
     937} 
    931938#endif // _USE_HAVRAN_SSE 
    932 #endif // USE_HAVRAN_RAYCASTER  
    933 } 
    934  
    935    
    936 #endif // _USE_HAVRAN_SSE 
    937  
    938  
     939 
     940  
    939941} // the namespace 
     942 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp

    r2638 r2655  
    2222#endif // _USE_HAVRAN_SSE 
    2323#endif // USE_HAVRAN_RAYCASTER 
     24 
    2425#include "HavranRayCaster.h" 
    2526 
     
    8283HavranRayCaster::ExportBinTree(const string &filename) 
    8384{ 
     85#ifdef USE_HAVRAN_RAYCASTER  
    8486  return mKtbtree->ExportBinTree(filename); 
     87#endif 
    8588} 
    8689 
     
    8891HavranRayCaster::ImportBinTree(const string &filename, ObjectContainer &objects) 
    8992{ 
     93#ifdef USE_HAVRAN_RAYCASTER  
    9094  return mKtbtree->ImportBinTree(filename, objects); 
     95#endif 
    9196} 
    9297 
     
    381386                                      ) 
    382387{ 
     388#ifdef USE_HAVRAN_RAYCASTER 
     389 
    383390  int hit_triangles[16]; 
    384391  float dist[16]; 
     
    408415  } 
    409416 
    410  
     417#endif // USE_HAVRAN_RAYCASTER  
    411418  return; 
    412419} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.h

    r2643 r2655  
    22#define _HavranRayCaster_H__ 
    33 
    4 #ifdef USE_HAVRAN_RAYCASTER 
    54 
    65#include "RayCaster.h" 
    76#include "Containers.h" 
    87#include <string> 
     8 
     9#ifdef USE_HAVRAN_RAYCASTER 
     10 
    911#include "ktbconf.h" 
    1012#include "raypack.h" 
     13 
     14#endif // USE_HAVRAN_RAYCASTER 
    1115 
    1216namespace GtpVisibilityPreprocessor { 
     
    212216#endif 
    213217 
    214 #endif // _HavranRayCaster_H__ 
     218//#endif // _HavranRayCaster_H__ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/common.h

    r2621 r2655  
    2525#define DYNAMIC_OBJECTS_HACK 1 
    2626#define USE_TRANSFORMED_MESH_INSTANCE_HACK 0 
    27 #define USE_HAVRAN_RAYCASTER 
     27//#define USE_HAVRAN_RAYCASTER 0 
    2828 
    2929namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/havran/testrt.cpp

    r2629 r2655  
    370370  cout << "Computing image\n" << endl; 
    371371 
    372   int id = preprocessor->mObjects.size() + 1; 
     372  int id = (int)preprocessor->mObjects.size() + 1; 
    373373     
    374374  //We add here a few objects 
Note: See TracChangeset for help on using the changeset viewer.