X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;fp=source%2Fgeometry%2Fhyperbox.h;h=546ad0ec3984c5b338978c23b37f0c8ea5f97533;hb=7919982691f0b8c69d8bef1bf6471b1e7a312163;hp=e45fadc12ae92d4752b523302328adeaa8df650d;hpb=338866aa988a4a450f4e78f65d3e3ec08c7112c7;p=libs%2Fmath.git diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index e45fadc..546ad0e 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -116,6 +116,7 @@ inline unsigned HyperBox::get_intersections(const Ray &ray, SurfaceP points[n].normal = LinAl::Vector(); points[n].normal[i] = j; points[n].distance = x; + points[n].entry = (T(j)*ray.get_direction()[i]