Commit 9d2d6f0d authored by Ellen Dekkers's avatar Ellen Dekkers
Browse files

ObjectTypes/MeshObject: bbox changed from float to double

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8000 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7a993e26
......@@ -484,10 +484,10 @@
/** Get the Bounding box size of this object
*/
template < class MeshT , DataType objectDataType >
void MeshObject< MeshT , objectDataType >::boundingBox( ACG::Vec3f& _bbMin , ACG::Vec3f& _bbMax ) {
void MeshObject< MeshT , objectDataType >::boundingBox( ACG::Vec3d& _bbMin , ACG::Vec3d& _bbMax ) {
if ( meshNode_ ) {
_bbMin = ACG::Vec3f(FLT_MAX, FLT_MAX, FLT_MAX);
_bbMax = ACG::Vec3f(FLT_MIN, FLT_MIN, FLT_MIN);
_bbMin = ACG::Vec3d(FLT_MAX, FLT_MAX, FLT_MAX);
_bbMax = ACG::Vec3d(FLT_MIN, FLT_MIN, FLT_MIN);
meshNode_->boundingBox(_bbMin,_bbMax);
} else {
std::cerr << "Error: Bounding box computation via Scenegraph not available without gui" << std::endl;
......
......@@ -206,7 +206,7 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
ACG::SceneGraph::TriStripNodeT<MeshT>* meshNode();
/// Get the BoundingBox of this object
void boundingBox( ACG::Vec3f& _bbMin , typename ACG::Vec3f& _bbMax );
void boundingBox( ACG::Vec3d& _bbMin , typename ACG::Vec3d& _bbMax );
private :
/// Status Node for a mesh, visualizing the selection state of a mesh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment