From 65b26478a62b8d715ec415164fff25fafcb35fc1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 2 Jul 2016 18:36:04 +0300 Subject: [PATCH] Minor fixes --- source/geometry/extrudedshape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/geometry/extrudedshape.h b/source/geometry/extrudedshape.h index a62aa9a..78dfa49 100644 --- a/source/geometry/extrudedshape.h +++ b/source/geometry/extrudedshape.h @@ -116,7 +116,7 @@ inline unsigned ExtrudedShape::get_intersections(const Ray &ray, Sur { T offset = T(); T limit = T(); - if(ray.get_direction()[D-1]!=T(0)) + if(ray_direction[D-1]!=T(0)) { offset = (half_length-ray_start[D-1])/ray_direction[D-1]; limit = (-half_length-ray_start[D-1])/ray_direction[D-1]; @@ -157,7 +157,7 @@ inline unsigned ExtrudedShape::get_intersections(const Ray &ray, Sur /* If the ray is not parallel to the base space, it may pass through the caps. */ - if(n