Ignore:
Timestamp:
01/25/06 17:45:45 (18 years ago)
Author:
mattausch
Message:

fixed loading function: the view cell manager is chosen depending on
the type in the file. the view space box is saved with the file

File:
1 edited

Legend:

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

    r576 r577  
    467467 
    468468  mViewSpaceBox = NULL; 
    469   mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 
    470    
    471    
    472   //-- load view cells from file if requested 
    473   if (mLoadViewCells) {  
    474         // load now because otherwise bounding box not correct 
    475         mViewCellsManager->LoadViewCells(mViewCellsFilename, &mObjects); 
    476         // $$JB tmp make all viewcelss valid 
    477         mViewCellsManager->SetValidity(0, 9999999999);  
    478  
    479   } 
    480   else 
    481   { 
     469 
     470  // if not already loaded, construct view cells from file 
     471  if (!mLoadViewCells) {         
     472         
     473          mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 
     474 
    482475          // construct view cells using it's own set of samples 
    483476          mViewCellsManager->Construct(this); 
     
    487480          mViewCellsManager->PrintStatistics(Debug); 
    488481  } 
    489    
     482 
     483 
    490484  int rssPass = 0; 
    491485  int rssSamples = 0; 
     
    515509   
    516510  if (mExportRays) { 
     511         
    517512        char filename[64]; 
    518513        sprintf(filename, "rss-rays-initial.x3d"); 
    519514        ExportRays(filename, mVssRays, mExportNumRays); 
     515         
    520516  } 
    521517   
Note: See TracChangeset for help on using the changeset viewer.