Ignore:
Timestamp:
12/08/06 17:10:14 (18 years ago)
Author:
bittner
Message:

merge, global lines, rss sampling updates

File:
1 edited

Legend:

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

    r1827 r1867  
    3030namespace GtpVisibilityPreprocessor { 
    3131 
    32 const static bool ADDITIONAL_GEOMETRY_HACK = false; 
    33  
    34  
     32  const static bool ADDITIONAL_GEOMETRY_HACK = false; 
     33 
     34  Preprocessor *preprocessor = NULL; 
     35   
    3536// HACK: Artificially modify scene to watch rendercost changes 
    3637static void AddGeometry(SceneGraph *scene) 
     
    443444        Environment::GetSingleton()->GetIntValue("Preprocessor.rayCastMethod", rayCastMethod); 
    444445        vector<FaceParentInfo> *fi =  
    445                 ((rayCastMethod == RayCaster::INTEL_RAYCASTER) && mLoadMeshes) ? 
    446                 &mFaceParents : NULL; 
    447  
     446          ((rayCastMethod == RayCaster::INTEL_RAYCASTER) && mLoadMeshes) ? 
     447          &mFaceParents : NULL; 
     448         
    448449        if (files == 1)  
    449         { 
     450          { 
    450451                if (strstr(filename.c_str(), ".x3d")) 
    451                 { 
     452                  { 
    452453                        parser = new X3dParser; 
    453454                         
     
    984985int 
    985986Preprocessor::GenerateRays(const int number, 
    986                                                                                                          const SamplingStrategy &strategy, 
    987                                                                                                         SimpleRayContainer &rays) 
    988 { 
    989         return strategy.GenerateSamples(number, rays); 
     987                                                  SamplingStrategy &strategy, 
     988                                                  SimpleRayContainer &rays) 
     989{ 
     990  return strategy.GenerateSamples(number, rays); 
    990991} 
    991992 
     
    10961097        if (rayCastMethod == 0) 
    10971098        { 
     1099                cout << "ray cast method: internal" << endl; 
    10981100                mRayCaster = new InternalRayCaster(*this, mKdTree); 
    1099                 cout << "ray cast method: internal" << endl; 
    11001101        } 
    11011102        else 
    11021103        { 
    11031104#ifdef GTP_INTERNAL 
    1104                 mRayCaster = new IntelRayCaster(*this, externKdTree); 
    1105                 cout << "ray cast method: intel" << endl; 
     1105          cout << "ray cast method: intel" << endl; 
     1106          mRayCaster = new IntelRayCaster(*this, externKdTree); 
    11061107#endif 
    11071108        } 
    1108  
     1109         
    11091110        return true; 
    11101111} 
Note: See TracChangeset for help on using the changeset viewer.