diff -r f6a72eb99631 -r 9d66d323c354 src/container.cc --- a/src/container.cc Tue Apr 29 23:31:08 2008 +0200 +++ b/src/container.cc Fri May 02 13:27:47 2008 +0200 @@ -3,7 +3,7 @@ * * This file is part of Pyrit Ray Tracer. * - * Copyright 2007 Radek Brich + * Copyright 2007, 2008 Radek Brich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -34,7 +34,7 @@ if (shapes.size() == 0) { /* initialize bounding box */ bbox = aShape->get_bbox(); - const Vector3 E(e, e, e); + const Vector E(e, e, e); bbox = BBox(bbox.L - E, bbox.H + E); } else { /* adjust bounding box */ @@ -60,6 +60,7 @@ return nearest_shape; } +#ifndef NO_SSE void Container::packet_intersection(const Shape **origin_shapes, const RayPacket &rays, Float *nearest_distances, Shape **nearest_shapes) { @@ -67,6 +68,7 @@ nearest_shapes[i] = nearest_intersection(origin_shapes[i], rays[i], nearest_distances[i]); } +#endif ostream & Container::dump(ostream &st) {