Changeset 310 for trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
- Timestamp:
- 10/05/05 18:36:16 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
r309 r310 9 9 #include "Exporter.h" 10 10 #include "X3dExporter.h" // delete later 11 #include "ViewCell.h" 11 12 12 13 #define USE_EXE_PATH false … … 33 34 p->BuildKdTree(); 34 35 p->KdTreeStatistics(cout); 35 36 37 // parse view cell hierarchy options 38 p->ParseViewCellsOptions(); 36 39 37 40 if (p->mViewCellsType == Preprocessor::BSP_VIEW_CELLS) 38 41 { 39 // if BSP tree construction method needs predefined view cells 40 if (BspTree::sConstructionMethod == BspTree::VIEW_CELLS) 42 if (BspTree::sConstructionMethod == BspTree::FROM_INPUT_VIEW_CELLS) 41 43 { 42 environment->GetStringValue("Scene.viewcells", buff);43 44 // view cells input file name 45 environment->GetStringValue("ViewCells.filename", buff); 44 46 string vcFilename(buff); 45 47 46 48 if (vcFilename != "") 47 49 p->LoadViewCells(vcFilename); 48 50 else 49 51 p->GenerateViewCells(); 50 52 51 53 Debug << "Viewcells loaded / generated. Number of view cells: " << (int)p->mViewCells.size() << endl; 52 54 } 55 56 p->BuildBspTree(); 53 57 54 p->BuildBspTree();55 58 p->BspTreeStatistics(Debug); 56 59 p->Export("vc_bsptree2.x3d", false, false, true);
Note: See TracChangeset
for help on using the changeset viewer.