source: trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp @ 65

Revision 65, 973 bytes checked in by bittner, 19 years ago (diff)

Merged headers and sources for dummy modules. Added GtpVisibilityPreprocessor?

Line 
1#include "Preprocessor.h"
2#include "SamplingPreprocessor.h"
3#include "ExactPreprocessor.h"
4
5namespace GtpVisibilityPreprocessor {
6
7  bool
8  Preprocessor::LoadViewcells(const string filename)
9  {
10
11    return true;
12  }
13
14  bool
15  Preprocessor::GenerateViewcells()
16  {
17   
18    return true;
19  }
20   
21  bool
22  Preprocessor::LoadScene(const string filename)
23  {
24    // use leaf nodes of the original spatial hiearrchy as occludees
25   
26    return true;
27  }
28
29  bool
30  Preprocessor::ExportPreprocessedData(const string filename)
31  {
32    return false;
33  }
34 
35  bool
36  Preprocessor::BuildKdTree()
37  {
38    mKdTree = new KdTree;
39    mKdTree->Subdivide(mKdTree->GetRoot());
40    return true;
41  }
42 
43};
44
45int
46main(int argc, char **argv)
47{
48  GtpVisibilityPreprocessor::Preprocessor *p = new GtpVisibilityPreprocessor::SamplingPreprocessor();
49  p->LoadScene("scene.wrl");
50  p->LoadViewcells("viewcells.wrl");
51  p->ComputeVisibility();
52  p->ExportPreprocessedData("scene.vis");
53  return 0;
54}
Note: See TracBrowser for help on using the repository browser.