- Timestamp:
- 01/11/09 22:54:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhConstructor.cpp
r3267 r3268 130 130 // no split could be achieved => just halve number of objects 131 131 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; 133 133 } 134 134 … … 185 185 BvhLeaf *l = new BvhLeaf(NULL); 186 186 187 l->mBox = SceneEntity::ComputeBoundingBox(mEntities + mFirst, mFirst - mLast + 1);188 189 187 l->mFirst = mFirst; 190 188 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); 191 193 l->mArea = l->mBox.SurfaceArea(); 192 194 193 cout << "constructing bvh from " << l->mFirst << " to " << l->mLast << endl;194 195 195 root = SubdivideLeaf(l, 0); 196 196
Note: See TracChangeset
for help on using the changeset viewer.