Changeset 1867 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 12/08/06 17:10:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1827 r1867 30 30 namespace GtpVisibilityPreprocessor { 31 31 32 const static bool ADDITIONAL_GEOMETRY_HACK = false; 33 34 32 const static bool ADDITIONAL_GEOMETRY_HACK = false; 33 34 Preprocessor *preprocessor = NULL; 35 35 36 // HACK: Artificially modify scene to watch rendercost changes 36 37 static void AddGeometry(SceneGraph *scene) … … 443 444 Environment::GetSingleton()->GetIntValue("Preprocessor.rayCastMethod", rayCastMethod); 444 445 vector<FaceParentInfo> *fi = 445 446 447 446 ((rayCastMethod == RayCaster::INTEL_RAYCASTER) && mLoadMeshes) ? 447 &mFaceParents : NULL; 448 448 449 if (files == 1) 449 {450 { 450 451 if (strstr(filename.c_str(), ".x3d")) 451 {452 { 452 453 parser = new X3dParser; 453 454 … … 984 985 int 985 986 Preprocessor::GenerateRays(const int number, 986 constSamplingStrategy &strategy,987 988 { 989 987 SamplingStrategy &strategy, 988 SimpleRayContainer &rays) 989 { 990 return strategy.GenerateSamples(number, rays); 990 991 } 991 992 … … 1096 1097 if (rayCastMethod == 0) 1097 1098 { 1099 cout << "ray cast method: internal" << endl; 1098 1100 mRayCaster = new InternalRayCaster(*this, mKdTree); 1099 cout << "ray cast method: internal" << endl;1100 1101 } 1101 1102 else 1102 1103 { 1103 1104 #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); 1106 1107 #endif 1107 1108 } 1108 1109 1109 1110 return true; 1110 1111 }
Note: See TracChangeset
for help on using the changeset viewer.