Rev | Line | |
---|
[65] | 1 | #include "Preprocessor.h" |
---|
| 2 | #include "SamplingPreprocessor.h" |
---|
| 3 | #include "ExactPreprocessor.h" |
---|
| 4 | |
---|
| 5 | namespace 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 | |
---|
| 45 | int |
---|
| 46 | main(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.