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.e.set(minx, maxy, maxz);
m->boundingbox.f.set(maxx, maxy, maxz); m->boundingbox.f.set(maxx, maxy, maxz);
m->boundingbox.g.set(maxx, maxy, minz); m->boundingbox.g.set(maxx, maxy, minz);
m->boundingrad = std::max( std::abs(minx)+std::abs(maxx), // m->boundingrad = std::max( std::abs(minx)+std::abs(maxx),
std::max( std::abs(miny)+std::abs(maxy), // std::max( std::abs(miny)+std::abs(maxy),
std::abs(minz)+std::abs(maxz))); // std::abs(minz)+std::abs(maxz)));
m->loaded = true; m->loaded = true;
// std::cout << "Loaded!" << std::endl; // std::cout << "Loaded!" << std::endl;