Ignore:
Timestamp:
05/23/08 17:47:22 (16 years ago)
Author:
mattausch
Message:

implemented dynamic object placement / removal

File:
1 edited

Legend:

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

    r2694 r2702  
    282282        mTrafo = IdentityMatrix(); 
    283283 
    284 #if DYNAMIC_OBJECTS_HACK 
    285284        mIntersectable = new SceneGraphLeafIntersectable(this, mBox); 
    286 #endif 
    287285} 
    288286 
     
    323321} 
    324322 
    325 } 
     323 
     324SceneGraphLeaf::SceneGraphLeaf(SceneGraphLeaf const& copy) 
     325{ 
     326        // hack: should just pass a IntersectableGroup as a whole 
     327        // instead we duplicate the object container and create a new 
     328        // leaf 
     329        mGeometry = copy.mGeometry; 
     330        //for (size_t i = 0; i < copy.mGeometry->size(); ++ i) 
     331        //      mGeometry.push_back(copy.mGeometry[i]); 
     332 
     333        mBox = copy.mBox; 
     334        mTrafo = copy.mTrafo; 
     335        mIsDynamic = copy.mIsDynamic; 
     336} 
     337 
     338} 
Note: See TracChangeset for help on using the changeset viewer.