X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.cpp;h=30994a378aa10cbc313861fcef0b0b96a4ce1d19;hb=71c93d11cead89b6783425279d42a9b9e10a9935;hp=fdb4dfc24d5477672ae6fd361f989880dcc5659a;hpb=e507f9267ca940ee6af70e948f34da94dd26d181;p=r2c2.git diff --git a/source/3d/layout.cpp b/source/3d/layout.cpp index fdb4dfc..30994a3 100644 --- a/source/3d/layout.cpp +++ b/source/3d/layout.cpp @@ -37,21 +37,6 @@ Layout3D::~Layout3D() delete objects.begin()->second; } -void Layout3D::get_bounds(Vector &minp, Vector &maxp) const -{ - Geometry::BoundingBox bbox; - - for(ObjectMap::const_iterator i=objects.begin(); i!=objects.end(); ++i) - { - const Shape *shape = i->second->get_object().get_shape(); - if(shape) - bbox = bbox|shape->get_axis_aligned_bounding_box(); - } - - minp = bbox.get_minimum_point(); - maxp = bbox.get_maximum_point(); -} - void Layout3D::add(Object3D &o) { insert_unique(objects, &o.get_object(), &o);