Ignore:
Timestamp:
01/21/08 20:38:41 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2615 r2621  
    66#include "Intersectable.h" 
    77#include "IntersectableWrapper.h" 
     8#include "ktball.h" 
    89 
    910 
     
    234235void SceneGraph::ExportScene(const string filename) 
    235236{ 
    236          
    237237} 
    238238 
     
    279279 
    280280SceneGraphLeaf::SceneGraphLeaf(): mIsDynamic(false) 
     281#if DYNAMIC_OBJECTS_HACK 
     282, mKtbTree(NULL) 
     283#endif 
    281284{ 
    282285        mTrafo = IdentityMatrix(); 
     286 
    283287#if DYNAMIC_OBJECTS_HACK 
    284288        mIntersectable = new SceneGraphLeafIntersectable(this, mBox); 
     
    288292 
    289293SceneGraphLeaf::SceneGraphLeaf(bool isDynamic): mIsDynamic(isDynamic) 
    290 { 
    291         mTrafo = IdentityMatrix(); 
     294#if DYNAMIC_OBJECTS_HACK 
     295, mKtbTree(NULL) 
     296#endif 
     297{ 
     298    mTrafo = IdentityMatrix(); 
    292299} 
    293300 
     
    316323} 
    317324 
    318 } 
     325 
     326#if DYNAMIC_OBJECTS_HACK 
     327 
     328 
     329void SceneGraphLeaf::RebuildKtbTree() 
     330{ 
     331        if (mKtbTree) 
     332                delete mKtbTree; 
     333 
     334        mKtbTree = new CKTB(); 
     335        mKtbTree->BuildUp(mGeometry); 
     336} 
     337 
     338#endif 
     339 
     340 
     341} 
Note: See TracChangeset for help on using the changeset viewer.