Changeset 810


Ignore:
Timestamp:
04/24/06 18:46:20 (18 years ago)
Author:
mattausch
Message:

added from point visibility tree:
this tree is constructed using from point visibility information

Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/Preprocessor.vcproj

    r752 r810  
    163163                        </File> 
    164164                        <File 
     165                                RelativePath="..\src\FromPointVisibilityTree.cpp"> 
     166                        </File> 
     167                        <File 
     168                                RelativePath="..\src\FromPointVisibilityTree.h"> 
     169                        </File> 
     170                        <File 
    165171                                RelativePath="..\src\GlRenderer.cpp"> 
    166172                        </File> 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Containers.h

    r503 r810  
    1414class Ray; 
    1515class Mesh; 
     16 
     17struct VisibilityPoint; 
    1618 
    1719/** Container storing polygons used during BSP tree construction. 
     
    4547typedef vector<Mesh *> MeshContainer; 
    4648 
     49/** Container storing visibility points, i.e. locations in space storing from point visibility 
     50        information. 
     51*/ 
     52typedef vector<VisibilityPoint *> VisibilityPointsContainer; 
    4753 
    4854#endif // _Container_H__ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h

    r801 r810  
    9595        friend class BspViewCellsManager; 
    9696        friend class VspBspTree; 
     97        friend class FromPointVisibilityTree; 
    9798        friend class BspTree; 
    9899 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r752 r810  
    316316        /** sets validy of all viewcells  
    317317        */ 
    318         virtual void SetValidity( 
    319                                                          int minPvsSize,  
     318        virtual void SetValidity(int minPvsSize,  
    320319                                                         int maxPvsSize) const; 
    321320 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r801 r810  
    11971197                 
    11981198                mSplitCandidates->push_back(SortableEntry(positive ? SortableEntry::ERayMin : SortableEntry::ERayMax,  
    1199                         pos, (*ri).mRay)); 
     1199                                                                        pos, (*ri).mRay)); 
    12001200 
    12011201                pos = (*ri).ExtrapTermination(axis); 
     
    12041204 
    12051205                mSplitCandidates->push_back(SortableEntry(positive ? SortableEntry::ERayMax : SortableEntry::ERayMin,  
    1206                         pos, (*ri).mRay)); 
     1206                                                                        pos, (*ri).mRay)); 
    12071207        } 
    12081208 
     
    12301230        // C = ct_div_ci  + (ql*rl + qr*rr)/queries 
    12311231 
    1232         int pvsl = 0, pvsr = pvsSize; 
     1232        int pvsl = 0; 
     1233        int pvsr = pvsSize; 
    12331234 
    12341235        int pvsBack = pvsl; 
     
    13291330                        sum = pvsl * ((*ci).value - minBox) + pvsr * (maxBox - (*ci).value); 
    13301331 
    1331                         //  cout<<"pos="<<(*ci).value<<"\t q=("<<ql<<","<<qr<<")\t r=("<<rl<<","<<rr<<")"<<endl; 
    1332                         // cout<<"cost= "<<sum<<endl; 
     1332                        //cout << "pos=" << (*ci).value << "\t pvs=(" <<  pvsl << "," << pvsr << ")" << endl; 
     1333                        //cout<<"cost= "<<sum<<endl; 
    13331334 
    13341335                        if (sum < minSum) 
     
    13431344        } 
    13441345         
    1345         //Debug << "pos: " << position << " sizebox: " << sizeBox << " pvs: " << pvsSize << endl; 
     1346        Debug << "pos: " << position << " sizebox: " << sizeBox << " pvs: " << pvsSize << endl; 
    13461347 
    13471348        // -- compute cost 
     
    14131414 
    14141415        int sAxis = 0; 
    1415         bool maxDepthForDrivingAxis = 0; 
    1416  
    1417         const bool useSpecialAxis = mOnlyDrivingAxis || mUseRandomAxis ||  
     1416        // hack : subdivide along driving axis up to certain depth 
     1417        int maxDepthForDrivingAxis = 0; 
     1418 
     1419    const bool useSpecialAxis = mOnlyDrivingAxis || mUseRandomAxis ||  
    14181420                mCirculatingAxis || (tData.mDepth < maxDepthForDrivingAxis); 
    14191421 
     
    15291531                                                         int &splitAxis) 
    15301532{ 
    1531         // hack 
     1533        // HACK matt: subdivide regularily to certain depth 
    15321534        if (data.mDepth < 0)     
    15331535        { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h

    r801 r810  
    2828struct BspRay; 
    2929 
    30 //#define OCTREE_HACK 0 
     30 
    3131/** 
    3232        This is a view space partitioning specialised BSPtree.   
Note: See TracChangeset for help on using the changeset viewer.