Changeset 422 for trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
- Timestamp:
- 11/18/05 16:29:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp
r421 r422 23 23 environment->Parse(argc, argv, USE_EXE_PATH); 24 24 MeshKdTree::ParseEnvironment(); 25 BspTree::ParseEnvironment(); 26 25 27 26 char buff[128]; 28 27 … … 58 57 p->ParseViewCellsOptions(); 59 58 60 // construct tree immediately for "from view cells" or "from scene geometry" 61 // construction method. For "from rays" construction, wait until there is 62 // a certain number of rays collected 63 if (ViewCell::sHierarchy == ViewCell::BSP && 64 !(BspTree::sConstructionMethod == BspTree::FROM_RAYS)) 59 if (ViewCell::sHierarchy == ViewCell::BSP) 65 60 { 66 if (BspTree::sConstructionMethod == BspTree::FROM_INPUT_VIEW_CELLS) 67 { 68 // view cells input file name 69 environment->GetStringValue("ViewCells.filename", buff); 70 string vcFilename(buff); 71 p->LoadViewCells(vcFilename); 72 Debug << (int)p->mViewCells.size() << " view cells loaded" << endl; 61 BspTree::ParseEnvironment(); 62 63 // We construct BSP tree immediately for "from view cells" or "from scene geometry" 64 // construction method. 65 // For the "from samples" option, construction is delayed until enough samples were collected 66 if (BspTree::sConstructionMethod != BspTree::FROM_SAMPLES) 67 { 68 if (BspTree::sConstructionMethod == BspTree::FROM_INPUT_VIEW_CELLS) 69 { 70 //-- load view cells from file 71 environment->GetStringValue("ViewCells.filename", buff); 72 string vcFilename(buff); 73 p->LoadViewCells(vcFilename); 74 Debug << (int)p->mViewCells.size() << " view cells loaded" << endl; 75 } 76 77 p->BuildBspTree(); 78 79 p->Export("vc_bsptree.x3d", false, false, true); 80 p->BspTreeStatistics(Debug); 73 81 } 74 75 p->BuildBspTree();76 77 p->Export("vc_bsptree.x3d", false, false, true);78 p->BspTreeStatistics(Debug);79 82 } 80 83
Note: See TracChangeset
for help on using the changeset viewer.