Changeset 3264
- Timestamp:
- 01/11/09 01:43:51 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3262 r3264 8 8 #include "RenderState.h" 9 9 #include "Material.h" 10 #include "BvhConstructor.h" 10 11 #include "gzstream.h" 11 12 … … 1495 1496 // the movements of the objects within 1496 1497 1498 cout << "creating dynamic bvh branch" << endl; 1499 1497 1500 DEL_PTR(mDynamicRoot); 1498 1501 -- mNumNodes; 1502 1503 #if 0 1504 BvhConstructor bvhConstructor(mGeometry, (int)mStaticGeometrySize, (int)mGeometrySize - 1); 1505 1506 int numNodes; 1507 mDynamicRoot = bvhConstructor.Construct(numNodes); 1508 1509 mNumNodes += numNodes; 1510 1511 #else 1499 1512 BvhLeaf *l = new BvhLeaf(mRoot); 1500 1513 mDynamicRoot = l; … … 1507 1520 l->mArea = l->mBox.SurfaceArea(); 1508 1521 1509 cout << "creating dynamic bvh branch" << endl;1510 1511 1522 if (mDynamicGeometrySize) 1512 1523 { 1513 1524 mDynamicRoot = SubdivideLeaf(l, 0); 1514 1525 } 1526 #endif 1515 1527 } 1516 1528 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhConstructor.h
r3262 r3264 13 13 class BvhConstructor 14 14 { 15 public: 16 15 17 BvhConstructor(SceneEntity **entities, int first, int last); 16 18
Note: See TracChangeset
for help on using the changeset viewer.