]> git.tdb.fi Git - r2c2.git/commitdiff
Layout3D::get_bounds was broken and not used anywhere, remove it
authorMikko Rasa <tdb@tdb.fi>
Sun, 24 Nov 2013 21:40:32 +0000 (23:40 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 24 Nov 2013 21:40:32 +0000 (23:40 +0200)
source/3d/layout.cpp
source/3d/layout.h

index fdb4dfc24d5477672ae6fd361f989880dcc5659a..30994a378aa10cbc313861fcef0b0b96a4ce1d19 100644 (file)
@@ -37,21 +37,6 @@ Layout3D::~Layout3D()
                delete objects.begin()->second;
 }
 
-void Layout3D::get_bounds(Vector &minp, Vector &maxp) const
-{
-       Geometry::BoundingBox<float, 3> 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);
index dd3c0f5ea9b150bd54f5340743961dd4fe3187ad..0dd44dd3e73802bca47ab8d2d7b2a5cad58a0d90 100644 (file)
@@ -38,7 +38,6 @@ public:
        Layout &get_layout() const { return layout; }
        Catalogue3D &get_catalogue() { return catalogue; }
        const Catalogue3D &get_catalogue() const { return catalogue; }
-       void get_bounds(Vector &, Vector &) const;
 
        void add(Object3D &);
        Object3D &get_3d(Object &) const;