From 7f9547c010fb8de3d4dc368d83279a1964ec9a9f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 19 Feb 2009 18:34:32 +0000 Subject: [PATCH] fixed bug in shapes/Cyl intersection routine for top cap distance git-svn-id: svn://anubis/fart/trunk@135 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- shapes/Cyl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes/Cyl.cc b/shapes/Cyl.cc index a8dc515..aafe022 100644 --- a/shapes/Cyl.cc +++ b/shapes/Cyl.cc @@ -45,7 +45,7 @@ Shape::IntersectList Cyl::intersect(const Ray & ray) if (m_top_radius > 0.0) { LinearSolver solver(ray_inv.getDirection()[2], - ray_inv.getOrigin()[2] + m_height); + ray_inv.getOrigin()[2] - m_height); Solver::Result solutions = solver.solve(); if (solutions.numResults > 0) {