Ignore:
Timestamp:
05/21/07 14:51:38 (17 years ago)
Author:
vizrt_christian_seidl
Message:

ADDED: Faster method for building BIH Tree
BUGFIX: Termination criteria for BIH Tree works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBihRenderable.h

    r2385 r2390  
    7171                }; 
    7272 
     73                inline void setActualSide(int d,BihPlaneEvent::Side s) 
     74                { 
     75                        mActualSide[d] = s; 
     76                }; 
     77 
     78                inline void FinalizeSide(int d) 
     79                { 
     80                        mFinalSide[d]=mActualSide[d]; 
     81                }; 
     82 
     83                inline BihPlaneEvent::Side GetFinalSide(int d) 
     84                { 
     85                        return mFinalSide[d]; 
     86                }; 
     87 
    7388                // funcions for attachment/detachment of renderables to/from the kd-tree 
    7489                inline bool isAttached() 
     
    132147                // Flag for the SAH determining the "cheaper" side of the split plane 
    133148                BihPlaneEvent::Side mSide; 
     149                BihPlaneEvent::Side mFinalSide[3]; 
     150                BihPlaneEvent::Side mActualSide[3]; 
    134151                // Flag for the SAH which marks if this renderable was already placed in the list after a split 
    135152                bool mClassified; 
Note: See TracChangeset for help on using the changeset viewer.