Changeset 2629 for GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp
- Timestamp:
- 01/23/08 00:21:50 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp
r2621 r2629 26 26 #define DEBUG_RAYCAST 0 27 27 28 // This macro should be undefined when testing ray tracing29 // by casting rays from file or using camera30 #define _PROCESS_RAY31 32 28 namespace GtpVisibilityPreprocessor { 33 29 34 35 36 #ifdef USE_HAVRAN_RAYCASTER37 30 #ifdef _USE_HAVRAN_SSE 38 39 31 // static rays 40 RayPacket2x232 GALIGN16 RayPacket2x2 41 33 HavranRayCaster::raypack; 42 34 #endif // _USE_HAVRAN_SSE 43 #endif // USE_HAVRAN_RAYCASTER 35 44 36 45 37 HavranRayCaster::HavranRayCaster(const Preprocessor &preprocessor): … … 70 62 71 63 if (!ImportBinTree(kdfile, objlist)) { 72 cout << "\nKd-tree for Havran ray caster imported."<<endl<<flush; 73 } else { 74 CTimer timer; 75 cout << "\nBuilding up kd-tree for Havran ray caster ..."<<endl<<flush; 76 77 timer.Start(); 78 mKtbtree->BuildUp(objlist); 79 timer.Stop(); 80 cout << "\nBuilding up kd-tree is finished, user time = " 81 << timer.UserTime() << " real time = " << timer.RealTime() << 82 endl <<flush; 83 ExportBinTree(kdfile); 64 cout << "\nKd-tree for Havran ray caster imported."<<endl<<flush; 65 } 66 else { 67 CTimer timer; 68 cout << "\nBuilding up kd-tree for Havran ray caster ..."<<endl<<flush; 69 70 timer.Start(); 71 mKtbtree->BuildUp(objlist); 72 timer.Stop(); 73 cout << "\nBuilding up kd-tree is finished, user time = " 74 << timer.UserTime() << " real time = " << timer.RealTime() 75 << endl; 76 ExportBinTree(kdfile); 84 77 } 85 78 #endif … … 513 506 #endif // USE_HAVRAN_RAYCASTER 514 507 } 508 509 510 511 515 512 #endif // _USE_HAVRAN_SSE 516 513 517 514 518 /*519 virtual void HavranRayCaster::AddDynamicObjecs(const ObjectContainer &objects, const Matrix4x4 &m);520 virtual void UpdateDynamicObjects(const Matrix4x4 &m);521 virtual void DeleteDynamicObjects);522 */523 515 } // the namespace
Note: See TracChangeset
for help on using the changeset viewer.