Ignore:
Timestamp:
10/06/06 21:37:00 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1577 r1580  
    829829         
    830830        AxisAlignedPlane candidatePlane = splitCandidate.mSplitPlane; 
    831         RayInfoContainer::const_iterator rit,  
    832                 rit_end = splitCandidate.mParentData.mRays->end(); 
    833  
    834         // this is the main ray classification loop! 
     831         
     832        Intersectable::NewMail(3); 
     833        KdLeaf::NewMail(3); 
     834        BvhLeaf::NewMail(3); 
     835 
     836        RayInfoContainer::const_iterator rit, rit_end = splitCandidate.mParentData.mRays->end(); 
     837 
     838    // this is the main ray classification loop! 
    835839        for(rit = splitCandidate.mParentData.mRays->begin(); rit != rit_end; ++ rit) 
    836840        { 
     
    849853#endif 
    850854        } 
    851          
     855        //cout << "pvs entries: " << fPvsSize << " " << bPvsSize << " " << oldPvsSize << endl; 
     856 
    852857        return (int)(fPvsSize + bPvsSize - oldPvsSize); 
    853858} 
     
    14951500                                                                                  candidatePlane.mPosition, t); 
    14961501 
    1497                 // evaluate contribution of ray endpoint to front and back pvs 
    1498                 // with respect to the classification 
     1502                // evaluate contribution of ray endpoint to front  
     1503                // and back pvs with respect to the classification 
    14991504                UpdateContributionsToPvs(*ray, true, cf, pvsFront, pvsBack, totalPvs);   
    15001505#if COUNT_ORIGIN_OBJECTS 
     
    16571662        if (!leaf) return; 
    16581663        const int renderCost = countEntries ? 1 : (int)leaf->mObjects.size(); 
    1659  
     1664         
    16601665        // leaf in no pvs => new 
    16611666        if (!leaf->Mailed() && !leaf->Mailed(1) && !leaf->Mailed(2)) 
     
    31243129                { 
    31253130                        BvhLeaf *leaf = mHierarchyManager->mBvHierarchy->GetLeaf(obj); 
    3126                         UpdateContributionsToPvs(leaf, cf, pvsFront, pvsBack, totalPvs, true);           
     3131                        UpdateContributionsToPvs(leaf, cf, pvsFront, pvsBack, totalPvs, true); 
    31273132                        break; 
    31283133                } 
Note: See TracChangeset for help on using the changeset viewer.