Ignore:
Timestamp:
12/02/05 08:45:09 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h

    r442 r443  
    495495        void ConstructGeometry(BspViewCell *vc, PolygonContainer &cell) const; 
    496496 
     497        /** Constructs geometry of view cell returning a BSP node geometry type. 
     498        */ 
    497499        void ConstructGeometry(BspNode *n, BspNodeGeometry &cell) const; 
    498500 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp

    r442 r443  
    12301230                                                                                const RayContainer &rays) 
    12311231{ 
     1232        return 0;// TODO 
    12321233        if (!ViewCellsConstructed()) 
    12331234        { 
     
    12411242        int pvsSize = 0; 
    12421243 
    1243         BspViewCellsStatistics vcStats; 
    1244         mVspBspTree->EvaluateViewCellsStats( vcStats); 
     1244        VspBspViewCellsStatistics vcStats; 
     1245        mVspBspTree->EvaluateViewCellsStats(vcStats); 
    12451246        Debug << "original view cell partition:\n" << vcStats << endl; 
    12461247                 
     
    12941295                iit = ray->bspIntersections.begin(); 
    12951296 
    1296                 BspLeaf *previousLeaf = (*iit).mLeaf; 
     1297                VspBspLeaf *previousLeaf = NULL;//TODO(*iit).mLeaf; 
    12971298                ++ iit; 
    12981299                 
    12991300                for (; iit != ray->bspIntersections.end(); ++ iit) 
    13001301                { 
    1301                         BspLeaf *leaf = (*iit).mLeaf; 
     1302                        VspBspLeaf *leaf = NULL;//TODO(*iit).mLeaf; 
    13021303 
    13031304                        if (ShouldMerge(leaf, previousLeaf)) 
    13041305                        {                        
    1305                                 MergeBspLeafViewCells(leaf, previousLeaf); 
     1306                                MergeVspBspLeafViewCells(leaf, previousLeaf); 
    13061307 
    13071308                                ++ merged; 
     
    13291330                                                                           const RayContainer &sampleRays) 
    13301331{ 
     1332        return; // TODO 
    13311333        if (!ViewCellsConstructed()) 
    13321334                return; 
    13331335 
    13341336        //-- recount pvs 
    1335         BspViewCellsStatistics vcStats; 
     1337        VspBspViewCellsStatistics vcStats; 
    13361338        mVspBspTree->EvaluateViewCellsStats(vcStats); 
    13371339 
     
    13611363        } 
    13621364 
    1363         ExportVspBspPvs(objects, sampleRays); 
     1365//TODO  ExportVspBspPvs(objects, sampleRays); 
    13641366} 
    13651367 
     
    14741476                        else 
    14751477                        { 
    1476                                 PolygonContainer cell; 
     1478                                PolygonContainer vcGeom; 
     1479 
    14771480                                // export view cell geometry 
    1478                                 mVspBspTree->ConstructGeometry(vc, cell); 
    1479                                 exporter->ExportPolygons(cell); 
    1480                                 CLEAR_CONTAINER(cell); 
     1481                                mVspBspTree->ConstructGeometry(vc, vcGeom); 
     1482                                exporter->ExportPolygons(vcGeom); 
     1483                                CLEAR_CONTAINER(vcGeom); 
    14811484                        } 
    14821485 
     
    15471550                                for     (int j = 0; j < (int)ray->bspIntersections.size(); ++ j) 
    15481551                                { 
    1549                                         VspBspLeaf *leaf; // TODO = ray->bspIntersections[j].mLeaf; 
     1552                                        VspBspLeaf *leaf = NULL; // TODO = ray->bspIntersections[j].mLeaf; 
    15501553 
    15511554                                        if (vc == leaf->GetViewCell())  
     
    15711574                        else 
    15721575                        { 
    1573                                 PolygonContainer cell; 
     1576                                PolygonContainer vcGeom; 
    15741577                                // export view cell 
    1575                                 mVspBspTree->ConstructGeometry(vc, cell); 
    1576                                 exporter->ExportPolygons(cell); 
    1577                                 CLEAR_CONTAINER(cell); 
     1578                                mVspBspTree->ConstructGeometry(vc, vcGeom); 
     1579                                exporter->ExportPolygons(vcGeom); 
     1580                                CLEAR_CONTAINER(vcGeom); 
    15781581                        } 
    15791582 
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp

    r442 r443  
    16881688} 
    16891689 
     1690void VspBspTree::ConstructGeometry(BspViewCell *vc, PolygonContainer &cell) const 
     1691{ 
     1692        /* 
     1693        TODO 
     1694        vector<VspBspLeaf *> leaves = vc->mBspLeaves; 
     1695 
     1696        vector<VspBspLeaf *>::const_iterator it, it_end = leaves.end(); 
     1697 
     1698        for (it = leaves.begin(); it != it_end; ++ it) 
     1699                ConstructGeometry(*it, vcGeom);*/ 
     1700} 
    16901701 
    16911702int VspBspTree::FindNeighbors(VspBspNode *n, vector<VspBspLeaf *> &neighbors,  
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.h

    r442 r443  
    457457        void ConstructGeometry(VspBspNode *n, PolygonContainer &cell) const; 
    458458 
     459        /** Constructs geometry associated with the half space intersections  
     460                leading to this node. 
     461        */ 
     462        void ConstructGeometry(BspViewCell *vc, PolygonContainer &cell) const; 
     463 
    459464        /** Construct geometry and stores it in a geometry node container. 
    460465        */ 
Note: See TracChangeset for help on using the changeset viewer.