+ delete tracks.begin()->second;
+ while(!vehicles.empty())
+ delete vehicles.begin()->second;
+}
+
+void Layout3D::get_bounds(Vector &minp, Vector &maxp) const
+{
+ Geometry::BoundingBox<float, 3> bbox;
+
+ for(TrackMap::const_iterator i=tracks.begin(); i!=tracks.end(); ++i)
+ bbox = bbox|i->second->get_track().get_type().get_shape()->get_axis_aligned_bounding_box();
+
+ minp = bbox.get_minimum_point();
+ maxp = bbox.get_maximum_point();