Ignore:
Timestamp:
01/03/06 23:33:45 (18 years ago)
Author:
bittner
Message:

Large merge - viewcells seem not functional now

File:
1 edited

Legend:

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

    r491 r492  
    1212#include "RenderSimulator.h" 
    1313 
     14Preprocessor *preprocessor; 
     15 
    1416Preprocessor::Preprocessor(): 
    1517mKdTree(NULL), 
     
    1921mViewCellsManager(NULL) 
    2022{ 
     23  environment->GetBoolValue("Preprocessor.useGlRenderer", mUseGlRenderer); 
    2124} 
    2225 
     
    5558 
    5659  mSceneGraph = new SceneGraph; 
    57  
    5860   
    5961  Parser *parser; 
     
    9597 
    9698        if (result) { 
    97                 mSceneGraph->AssignObjectIds(); 
    98                 int intersectables, faces; 
    99                 mSceneGraph->GetStatistics(intersectables, faces); 
    100                 cout<<filename<<" parsed successfully."<<endl; 
    101                 cout<<"#NUM_OBJECTS (Total numner of objects)\n"<<intersectables<<endl; 
    102                 cout<<"#NUM_FACES (Total numner of faces)\n"<<faces<<endl; 
    103         } 
    104  
    105          
    106   return result; 
     99           
     100          mSceneGraph->AssignObjectIds(); 
     101          int intersectables, faces; 
     102          mSceneGraph->GetStatistics(intersectables, faces); 
     103          cout<<filename<<" parsed successfully."<<endl; 
     104          cout<<"#NUM_OBJECTS (Total numner of objects)\n"<<intersectables<<endl; 
     105          cout<<"#NUM_FACES (Total numner of faces)\n"<<faces<<endl; 
     106          mSceneGraph->CollectObjects(&mObjects); 
     107          mSceneGraph->mRoot->UpdateBox(); 
     108        } 
     109         
     110         
     111        return result; 
    107112} 
    108113 
     
    139144bool 
    140145Preprocessor::Export( const string filename, 
    141                                                                                         const bool scene, 
    142                                                                                         const bool kdtree, 
    143                                                                                         const bool bsptree 
    144                                                                                         ) 
     146                                          const bool scene, 
     147                                          const bool kdtree, 
     148                                          const bool bsptree 
     149                                          ) 
    145150{ 
    146151  Exporter *exporter = Exporter::GetExporter(filename); 
Note: See TracChangeset for help on using the changeset viewer.