Changeset 1589 for GTP/trunk/Lib


Ignore:
Timestamp:
10/09/06 17:16:40 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h

    r1580 r1589  
    804804        */ 
    805805        void CreateRoot(const ObjectContainer &objects); 
    806  
     806/*void 
     807RenderBvhNode(BvhNode *node) 
     808{ 
     809  if (node->IsLeaf()) { 
     810        BvhLeaf *leaf = (BvhLeaf *) node; 
     811        for (int i=0; i < mObjects.size(); i++) 
     812                cout << "leaf obj " << i << endl; 
     813          //RenderIntersectable(mObjects[i]); 
     814  } else { 
     815        BvhInterior *in = (BvhInterior *)node; 
     816        RenderBvhNode(in->GetBack()); 
     817        RenderBvhNode(in->GetFront()); 
     818  } 
     819   
     820}*/ 
    807821protected: 
    808822         
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r1585 r1589  
    627627  if (node->IsLeaf()) { 
    628628        BvhLeaf *leaf = (BvhLeaf *) node; 
    629         for (int i=0; i < mObjects.size(); i++) 
    630           RenderIntersectable(mObjects[i]); 
     629        for (int i=0; i < leaf->mObjects.size(); i++) 
     630                cout << "leaf obj " << i << endl; 
     631          //RenderIntersectable(mObjects[i]); 
    631632  } else { 
    632633        BvhInterior *in = (BvhInterior *)node; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h

    r1580 r1589  
    345345    int mViewSpaceSubdivisionType; 
    346346 
     347        /// the traversal queue 
     348        SplitQueue mTQueue; 
     349         
    347350        //////////// 
    348351        //-- helper variables 
     
    355358        SubdivisionCandidate *mCurrentCandidate; 
    356359 
    357         /////////////////// 
    358  
    359360 
    360361        /////////////////// 
     
    365366        /// object space partition kd tree 
    366367        OspTree *mOspTree; 
     368        public: 
    367369        /// bounding volume hierarchy 
    368370        BvHierarchy *mBvHierarchy; 
    369  
    370         ////////////////////// 
    371          
    372  
    373         /// the traversal queue 
    374         SplitQueue mTQueue; 
    375          
     371         
     372protected: 
     373 
    376374 
    377375        ////////// 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1588 r1589  
    56905690                ViewCell *vc = GetViewCell(point); 
    56915691        } 
     5692        //RenderBvhNode(mHierarchyManager->mBvHierarchy->GetRoot()); 
     5693 
    56925694        disposeRays(evaluationSamples, NULL); 
    56935695} 
Note: See TracChangeset for help on using the changeset viewer.