Changeset 870 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 05/02/06 10:26:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r100 r870 1 1 #include "VisibilityEnvironment.h" 2 #include "common.h" 3 #include "Environment.h" 4 2 5 3 6 namespace GtpVisibility { … … 6 9 VisibilityEnvironment::VisibilityEnvironment() 7 10 { 11 // load debug stream 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 14 } 15 VisibilityEnvironment::~VisibilityEnvironment() 16 { 17 // load debug stream 18 DEL_PTR(GtpVisibilityPreprocessor::environment); 19 8 20 } 9 21 //----------------------------------------------------------------------- 10 void VisibilityEnvironment::LoadEnvironment( )22 void VisibilityEnvironment::LoadEnvironment(string filename) 11 23 { 24 // todo matt: 25 GtpVisibilityPreprocessor::environment = new GtpVisibilityPreprocessor::Environment; 26 27 char argc = 2; 28 char *argv[2]; 29 argv[0] = ""; 30 31 char fname[200]; 32 sprintf(fname, "%s", filename.c_str()); 33 argv[1] = fname; 34 35 GtpVisibilityPreprocessor::Debug << "filename: " << argv[1] << endl; 36 37 GtpVisibilityPreprocessor::environment->Parse(argc, argv, false); 38 //MeshKdTree::ParseEnvironment(); 12 39 } 13 40 41 14 42 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.