Geometry::BoundingBox<float, 3> bbox;
for(ObjectMap::const_iterator i=objects.begin(); i!=objects.end(); ++i)
- bbox = bbox|i->second->get_object().get_type().get_shape()->get_axis_aligned_bounding_box();
+ {
+ 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();