+void View3D::compute_bounds(Vector &minp, Vector &maxp)
+{
+ const set<Object *> &objects = layout.get_layout().get_all<Object>();
+ Geometry::BoundingBox<float, 3> bbox;
+ for(set<Object *>::const_iterator i=objects.begin(); i!=objects.end(); ++i)
+ bbox = bbox|(*i)->get_bounding_box();
+
+ minp = bbox.get_minimum_point();
+ maxp = bbox.get_maximum_point();
+}
+
+void View3D::view_all(bool tight)
+{
+ Vector minp, maxp;
+ compute_bounds(minp, maxp);
+
+ float t = tan(camera.get_field_of_view()/2.0f)*2.0f;