Changeset 492 for trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
- Timestamp:
- 01/03/06 23:33:45 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r491 r492 12 12 #include "RenderSimulator.h" 13 13 14 Preprocessor *preprocessor; 15 14 16 Preprocessor::Preprocessor(): 15 17 mKdTree(NULL), … … 19 21 mViewCellsManager(NULL) 20 22 { 23 environment->GetBoolValue("Preprocessor.useGlRenderer", mUseGlRenderer); 21 24 } 22 25 … … 55 58 56 59 mSceneGraph = new SceneGraph; 57 58 60 59 61 Parser *parser; … … 95 97 96 98 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; 107 112 } 108 113 … … 139 144 bool 140 145 Preprocessor::Export( const string filename, 141 142 143 144 146 const bool scene, 147 const bool kdtree, 148 const bool bsptree 149 ) 145 150 { 146 151 Exporter *exporter = Exporter::GetExporter(filename);
Note: See TracChangeset
for help on using the changeset viewer.