X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fextrudedshape.h;h=78dfa4911463e57951eaa0ca4524c223ab9ce9b5;hp=a62aa9a311e88bf09dd9fa5d480b425baaf38758;hb=65b26478a62b8d715ec415164fff25fafcb35fc1;hpb=4fc002747e8138501d08942be247e60cd99ac404 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