|
From: Markus R. <rol...@us...> - 2006-02-15 00:59:19
|
Update of /cvsroot/simspark/simspark/spark/kerosin/sceneserver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8983 Modified Files: axis.h axis.cpp Log Message: - compute a bounding box for the Axis Index: axis.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/axis.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** axis.h 5 Dec 2005 21:38:23 -0000 1.1 --- axis.h 15 Feb 2006 00:59:02 -0000 1.2 *************** *** 42,45 **** --- 42,48 ---- void SetSize(float size); + /** computes the local bounding box of the node */ + virtual void ComputeBoundingBox(); + protected: virtual void RenderInternal(); Index: axis.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/axis.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** axis.cpp 5 Dec 2005 21:38:23 -0000 1.1 --- axis.cpp 15 Feb 2006 00:59:02 -0000 1.2 *************** *** 72,73 **** --- 72,78 ---- } + void Axis::ComputeBoundingBox() + { + mLocalBoundingBox.minVec.Set(0.0, 0.0, 0.0); + mLocalBoundingBox.maxVec.Set(mSize,mSize,mSize); + } |