Ignore:
Timestamp:
01/11/09 22:54:05 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhConstructor.cpp

    r3267 r3268  
    130130                // no split could be achieved => just halve number of objects 
    131131                split = (leaf->mLast + leaf->mFirst) / 2; 
    132                 cerr << "no reduction " << leaf->CountPrimitives() << " " << leaf->mFirst << " " << leaf->mLast << endl; 
     132                //cerr << "no reduction " << leaf->CountPrimitives() << " " << leaf->mFirst << " " << leaf->mLast << endl; 
    133133        } 
    134134 
     
    185185        BvhLeaf *l = new BvhLeaf(NULL); 
    186186         
    187         l->mBox = SceneEntity::ComputeBoundingBox(mEntities + mFirst, mFirst - mLast + 1); 
    188  
    189187        l->mFirst = mFirst; 
    190188        l->mLast = mLast; 
     189 
     190        cout << "constructing bvh from "  << l->mFirst << " to " << l->mLast << endl; 
     191 
     192        l->mBox = SceneEntity::ComputeBoundingBox(mEntities + mFirst, mLast - mFirst + 1); 
    191193        l->mArea = l->mBox.SurfaceArea(); 
    192194         
    193         cout << "constructing bvh from "  << l->mFirst << " to " << l->mLast << endl; 
    194  
    195195        root = SubdivideLeaf(l, 0); 
    196196 
Note: See TracChangeset for help on using the changeset viewer.