- Timestamp:
- 05/26/08 04:01:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/ObjectPlacer.cpp
r2702 r2710 58 58 } 59 59 60 61 void 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); 60 72 } 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.