triangle intersection return value

This commit is contained in:
mattijs
2009-04-09 16:54:35 +01:00
parent b020b28787
commit fa77b7ce77
4 changed files with 10 additions and 17 deletions

View File

@ -456,7 +456,7 @@ bool Foam::treeDataTriSurface::intersects
indexedOctree<treeDataTriSurface>::perturbTol()
);
if (inter.hit() && magSqr(inter.hitPoint()-start) <= magSqr(dir))
if (inter.hit() && inter.distance() <= 1)
{
// Note: no extra test on whether intersection is in front of us
// since using half_ray.