Commit a9523fb8 authored by Ken Martin's avatar Ken Martin
Browse files

fixed bug in the intersect with line stuff

parent 134868bb
......@@ -325,9 +325,12 @@ int vtkTriangle::IntersectWithLine(float p1[3], float p2[3], float tol,
//
// Evaluate position
//
if ( this->EvaluatePosition(x, closestPoint, subId, pcoords, dist2, weights) )
if (this->EvaluatePosition(x, closestPoint, subId, pcoords, dist2, weights)
>= 0)
{
if ( dist2 <= tol2 ) return 1;
}
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment