Browse Source

Fixed model bounding radius

seba 11 years ago
parent
commit
d5ec792b66
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      model/loadobj.cpp

+ 4
- 4
model/loadobj.cpp View File

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

Loading…
Cancel
Save