diff -r 9dbb9c8c115b -r 930a2d3ecaed src/container.cc --- a/src/container.cc Thu Apr 24 10:49:11 2008 +0200 +++ b/src/container.cc Thu Apr 24 13:55:11 2008 +0200 @@ -60,6 +60,14 @@ return nearest_shape; } +void Container::packet_intersection(const Shape **origin_shapes, const Ray *rays, + Float *nearest_distances, Shape **nearest_shapes) +{ + for (int i = 0; i < 4; i++) + nearest_shapes[i] = nearest_intersection(origin_shapes[i], rays[i], + nearest_distances[i]); +} + ostream & Container::dump(ostream &st) { st << "(container," << shapes.size();