Commit 86f15e48 authored by Jan Möbius's avatar Jan Möbius
Browse files

fixed wrong bounding box computation for MeshNode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10002 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9d6a8bb8
......@@ -508,7 +508,7 @@
void MeshObject< MeshT >::boundingBox( ACG::Vec3d& _bbMin , ACG::Vec3d& _bbMax ) {
if ( meshNode_ ) {
_bbMin = ACG::Vec3d(FLT_MAX, FLT_MAX, FLT_MAX);
_bbMax = ACG::Vec3d(FLT_MIN, FLT_MIN, FLT_MIN);
_bbMax = ACG::Vec3d(-FLT_MAX, -FLT_MAX, -FLT_MAX);
meshNode_->boundingBox(_bbMin,_bbMax);
} else {
std::cerr << "Error: Bounding box computation via Scenegraph not available without gui" << std::endl;
......
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