Commit e2e0ae5f authored by Dirk Wilden's avatar Dirk Wilden
Browse files

fixed bb computation

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11322 383ad7c9-94d9-4d36-a494-682f7c89f535
parent db2ca034
......@@ -68,6 +68,13 @@ LineNode::
boundingBox(Vec3d& _bbMin, Vec3d& _bbMax)
{
ConstPointIter p_it=points_.begin(), p_end=points_.end();
if ( p_it!=p_end ){
_bbMax = *p_it;
_bbMin = *p_it;
++p_it;
}
for (; p_it!=p_end; ++p_it)
{
_bbMax.maximize(*p_it);
......
Markdown is supported
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