diff --git a/wfobj-view.cc b/wfobj-view.cc index 5e83efc..a6620b9 100644 --- a/wfobj-view.cc +++ b/wfobj-view.cc @@ -78,6 +78,12 @@ Viewer::Viewer(const char * filename) m_dragging = false; m_obj.load(filename, &loadTexture); m_list = m_obj.render(); + + /* Print out the object's size */ + const float * aabb = m_obj.getAABB(); + cout << "Object width: " << (aabb[3]-aabb[0]) << endl; + cout << "Object depth: " << (aabb[4]-aabb[1]) << endl; + cout << "Object height: " << (aabb[5]-aabb[2]) << endl; } void Viewer::initgl()