Ignore:
Timestamp:
06/13/08 18:06:32 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/Bvh.cpp

    r2755 r2756  
    1010#include "glInterface.h" 
    1111#include "Triangle3.h" 
    12  
     12#include "SceneEntity.h" 
     13#include "Geometry.h" 
    1314 
    1415namespace CHCDemo 
     
    557558 
    558559 
    559 /* 
    560560void Bvh::ComputeIds() 
    561561{ 
    562         // collect all nodes, also the nodes from local bvh 
    563         // warning: root nodes local bvh are not in there, as they  
    564         // are equivalent geometry bvh leaves 
     562        // collect all nodes 
    565563        BvhNodeContainer nodes; 
    566         CollectAllNodes(mRoot, nodes); 
     564        CollectNodes(mRoot, nodes); 
    567565 
    568566        // assign ids to all nodes of the "regular" hierarchy 
    569567        int i = 0; 
    570         HierarchyNodeContainer::const_iterator lit, lit_end = nodes.end(); 
     568        BvhNodeContainer::const_iterator lit, lit_end = nodes.end(); 
    571569 
    572570        for (lit = nodes.begin(); lit != lit_end; ++ lit, ++ i) 
     
    575573        } 
    576574} 
    577 */ 
     575 
    578576 
    579577void Bvh::PrepareVertices() 
     
    819817 
    820818        for (int i = node->mFirst; i <= node->mLast; ++ i) 
    821         { 
    822819                numTriangles += mGeometry[i]->GetGeometry()->CountTriangles(); 
    823         } 
    824  
     820         
    825821        return numTriangles; 
    826822} 
    827823 
    828824 
    829 float Bvh::GetGeometryArea(BvhNode *node) const 
     825float Bvh::GetArea(BvhNode *node) const 
    830826{ 
    831827        return node->mArea; 
Note: See TracChangeset for help on using the changeset viewer.