Ignore:
Timestamp:
11/18/05 16:29:31 (19 years ago)
Author:
mattausch
Message:

worded on vspkdtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/main.cpp

    r421 r422  
    2323  environment->Parse(argc, argv, USE_EXE_PATH); 
    2424  MeshKdTree::ParseEnvironment(); 
    25   BspTree::ParseEnvironment(); 
    26   
     25    
    2726  char buff[128]; 
    2827   
     
    5857  p->ParseViewCellsOptions(); 
    5958 
    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) 
    6560  { 
    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); 
    7381          } 
    74          
    75           p->BuildBspTree(); 
    76          
    77           p->Export("vc_bsptree.x3d", false, false, true); 
    78           p->BspTreeStatistics(Debug); 
    7982  } 
    8083 
Note: See TracChangeset for help on using the changeset viewer.