Fixed model bounding radius

This commit is contained in:
seba 2009-08-28 00:34:46 +02:00
parent bff2ad312d
commit d5ec792b66
1 changed files with 4 additions and 4 deletions

View File

@ -227,10 +227,10 @@ bool LoadOBJ::load(Model *m) {
m->boundingbox.e.set(minx, maxy, maxz);
m->boundingbox.f.set(maxx, maxy, maxz);
m->boundingbox.g.set(maxx, maxy, minz);
m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
std::max( std::abs(miny)+std::abs(maxy),
std::abs(minz)+std::abs(maxz)));
// m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
// std::max( std::abs(miny)+std::abs(maxy),
// std::abs(minz)+std::abs(maxz)));
m->loaded = true;
// std::cout << "Loaded!" << std::endl;