Ignore:
Timestamp:
02/18/06 22:06:33 (18 years ago)
Author:
mattausch
Message:

implemented split queue (but not tested yet!)

File:
1 edited

Legend:

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

    r652 r653  
    171171                float mRenderCost; 
    172172 
     173                VspBspSplitCandidate(): mRenderCost(0)  
     174                {}; 
     175 
    173176                VspBspSplitCandidate(const Plane3 &plane, const VspBspTraversalData &tData):  
    174                 mSplitPlane(plane), mParentData(tData) 
     177                mSplitPlane(plane), mParentData(tData), mRenderCost(0) 
    175178                {} 
    176179 
     
    395398                                                                 const VspBspTraversalData &data) const; 
    396399 
     400        void ConstructWithSplitQueueQueue(const PolygonContainer &polys, RayInfoContainer *rays); 
     401 
     402 
    397403        /** Returns view cell corresponding to  
    398404                the invalid view space. If it does not exist, it is created. 
     
    424430        BspNode *Subdivide(VspBspTraversalQueue &tStack,  
    425431                                           VspBspTraversalData &tData); 
     432 
     433        BspNode *Subdivide(VspBspSplitQueue &tQueue, 
     434                                           VspBspSplitCandidate &splitCandidate); 
    426435 
    427436        /** Constructs the tree from the given traversal data. 
     
    459468                                                         float &pBack) const; 
    460469 
    461         /** Subdivide leaf. 
     470        /** Subdivides leaf. 
    462471                @param leaf the leaf to be subdivided 
    463472                 
     
    473482        */ 
    474483 
    475         BspNode *SubdivideNode(VspBspTraversalData &tData, 
    476                                                    VspBspTraversalData &frontData, 
    477                                                    VspBspTraversalData &backData, 
    478                                                    PolygonContainer &coincident); 
     484        BspInterior *SubdivideNode(const Plane3 &splitPlane, 
     485                                                           VspBspTraversalData &tData, 
     486                                                           VspBspTraversalData &frontData, 
     487                               VspBspTraversalData &backData, 
     488                                                           PolygonContainer &coincident); 
    479489 
    480490        /** Extracts the meshes of the objects and adds them to polygons.  
Note: See TracChangeset for help on using the changeset viewer.