mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
triangle intersection return value
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user