Changeset 1697 for GTP/trunk/Lib/Vis


Ignore:
Timestamp:
10/29/06 19:15:22 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1696 r1697  
    963963                if (success) 
    964964                { 
    965                         //sc->CollectDirtyCandidates(dirtyCandidates, true); 
     965                        sc->CollectDirtyCandidates(dirtyCandidates, true); 
    966966                        ++ steps; 
    967967                } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Intersectable.h

    r1696 r1697  
    7777  Intersectable(): mMailbox(0), mReferences(0), mBvhLeaf(0), mVssRays(NULL) {} 
    7878 
    79   virtual Intersectable::~Intersectable() {}; 
     79  virtual Intersectable::~Intersectable() {DEL_PTR(mVssRays);}; 
    8080 
    8181  void SetId(const int id) { mId = id; } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r1696 r1697  
    500500                cout<<"#NUM_OBJECTS (Total numner of objects)\n"<<intersectables<<endl; 
    501501                cout<<"#NUM_FACES (Total numner of faces)\n"<<faces<<endl; 
     502                mObjects.reserve(intersectables); 
    502503                mSceneGraph->CollectObjects(&mObjects); 
    503504                mSceneGraph->GetRoot()->UpdateBox(); 
    504   
     505                cout << "finished loading" << endl; 
    505506                if (0) 
    506507                { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r1696 r1697  
    202202        } 
    203203 
    204         if (1) { 
    205           // export obj file 
    206           Exporter *exporter = new ObjExporter("scene.obj"); 
    207           exporter->ExportScene(preprocessor->mSceneGraph->GetRoot()); 
    208           delete exporter; 
    209         } 
    210          
    211          
    212204        const string externKdTree = ReplaceSuffix(filename, ".obj", ".kdf"); 
    213205        const string internKdTree = GetInternFilename(filename, preprocessor->mLoadMeshes ? ".kdm" : ".kdt"); 
    214206 
    215         //-- initialize external ray casters 
     207        //////////// 
     208        //-- initialize external ray caster 
    216209         
    217210        if (preprocessor->InitRayCast(externKdTree, internKdTree)) 
Note: See TracChangeset for help on using the changeset viewer.