source: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp @ 870

Revision 870, 1.0 KB checked in by mattausch, 18 years ago (diff)

added pvs

Line 
1#include "VisibilityEnvironment.h"
2#include "common.h"
3#include "Environment.h"
4
5
6namespace GtpVisibility {
7
8//-----------------------------------------------------------------------
9VisibilityEnvironment::VisibilityEnvironment()
10{
11        // load debug stream
12        GtpVisibilityPreprocessor::Debug.open("debug.log");
13         
14}
15VisibilityEnvironment::~VisibilityEnvironment()
16{
17        // load debug stream
18        DEL_PTR(GtpVisibilityPreprocessor::environment);
19         
20}
21//-----------------------------------------------------------------------
22void VisibilityEnvironment::LoadEnvironment(string filename)
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();
39}
40
41
42} // namespace GtpVisibility
Note: See TracBrowser for help on using the repository browser.