X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;h=10c28d5d1f4c20a15937e7b0aa696f3074151aec;hp=7d363f246a8a48e25cbb07762e351f7f4dc58936;hb=c135ff2480f4e2aaf05b0206631bb0e1b5d73fad;hpb=204db1dfb803a97481f2a8b3bbaf6e20be6e0980 diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index 7d363f2..10c28d5 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -83,7 +83,6 @@ inline unsigned HyperBox::get_intersections(const Ray &ray, SurfaceP LinAl::Vector half_dim = dimensions/T(2); unsigned n = 0; - T first_depth = T(); for(unsigned i=0; i::get_intersections(const Ray &ray, SurfaceP points[n].position = p; points[n].normal = LinAl::Vector(); points[n].normal[i] = j; - if(n==0) - first_depth = x; - else if(n==1 && x