Ignore:
Timestamp:
05/26/08 04:01:24 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2702 r2710  
    5858} 
    5959 
     60 
     61void ObjectPlacer::PlaceObject(SceneGraphLeaf *leaf, const Vector3 &pt) 
     62{ 
     63        AxisAlignedBox3 box = leaf->GetBox(); 
     64 
     65        Vector3 p = box.Center() - pt;; 
     66 
     67        // set pivot to ground of object 
     68        //p.y -= obj->GetOriginalBox().Min().y; 
     69        Matrix4x4 trafo = TranslationMatrix(p); 
     70 
     71        leaf->ApplyTransform(trafo); 
    6072} 
     73 
     74} 
Note: See TracChangeset for help on using the changeset viewer.