Changeset 2063


Ignore:
Timestamp:
01/28/07 23:41:59 (17 years ago)
Author:
mattausch
Message:

warning: the mutation contains bugs now as internal
ray casting support is not implemented

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
6 edited

Legend:

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

    r2060 r2063  
    336336                                                                                                  ) 
    337337{ 
     338#ifdef GTP_INTERNAL 
     339 
    338340  // first reconstruct the termination point 
    339341  Vector3 oldDir = Normalize(oldRay.GetDir()); 
     
    368370  float left = 0.0f; 
    369371  float right = 1.0f; 
     372 
    370373  // cast rays to find silhouette ray 
    371374  for (int j=0; j < mSilhouetteSearchSteps; j++) { 
     
    442445  } 
    443446 
    444  
     447#else 
     448cerr << "warning: reverse mutation not supported!" << endl; 
     449#endif 
    445450   
    446451  return true; 
     
    460465                                                                                                                                ) 
    461466{ 
     467#ifdef GTP_INTERNAL 
     468 
    462469  const int packetSize = 4; 
    463470  static int hit_triangles[packetSize]; 
     
    516523  //  cout<<i<<endl; 
    517524  return shifts[i]; 
     525 
     526#else 
     527        cerr << "warning: shiluette mutation not supported" << endl; 
     528        return Vector3(0, 0, 0); 
     529#endif 
     530   
    518531} 
    519532 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2048 r2063  
    320320                                OptimizeForProcessor="3" 
    321321                                OptimizeForWindowsApplication="TRUE" 
    322                                 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;" 
     322                                AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer" 
    323323                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;USE_QT;ATI" 
    324324                                ExceptionHandling="TRUE" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h

    r2048 r2063  
    5454                                                const bool pruneInvalidRays = true) = 0; 
    5555 
    56         virtual void CastRays16( 
    57                                                          SimpleRayContainer &rays, 
    58                                                          VssRayContainer &vssRays, 
    59                                                          const AxisAlignedBox3 &sbox, 
    60                                                          const bool castDoubleRay, 
    61                                                          const bool pruneInvalidRays = true) = 0; 
     56        virtual void CastRays16(SimpleRayContainer &rays, 
     57                                                        VssRayContainer &vssRays, 
     58                                                        const AxisAlignedBox3 &sbox, 
     59                                                        const bool castDoubleRay, 
     60                                                        const bool pruneInvalidRays = true) = 0; 
    6261 
    63  
    64   virtual void 
    65   SortRays(SimpleRayContainer &rays); 
     62        /*virtual void CastRaysEye4(SimpleRayContainer &rays, 
     63                                                          VssRayContainer &vssRays, 
     64                                                          const AxisAlignedBox3 &sbox, 
     65                                                          const bool castDoubleRay, 
     66                                                          const bool pruneInvalidRays = true) = 0; 
     67*/ 
     68        virtual void 
     69        SortRays(SimpleRayContainer &rays); 
    6670 
    6771 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp

    r2053 r2063  
    6464static SAXParser::ValSchemes    valScheme       = SAXParser::Val_Auto; 
    6565 
    66 #define PVS_HACK 1 
     66#define PVS_HACK 0 
    6767 
    6868inline static bool ilt(Intersectable *obj1, Intersectable *obj2) 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp

    r1966 r2063  
    624624} 
    625625 
    626 } 
     626 
     627void VssPreprocessor::DeterminePvsObjects(VssRayContainer &rays) 
     628{ 
     629        mViewCellsManager->DeterminePvsObjects(rays, true); 
     630} 
     631 
     632 
     633} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.h

    r1771 r2063  
    8989  void TestBeamCasting(VssTree *tre, ViewCellsManager *vm, const ObjectContainer &objects); 
    9090 
     91  void DeterminePvsObjects(VssRayContainer &rays); 
     92 
    9193  bool mTestBeamSampling; 
    9294 
Note: See TracChangeset for help on using the changeset viewer.