ENH: foamyHexMesh: change inside/outside test to check for nearest intersection

This commit is contained in:
laurence
2013-08-30 12:50:02 +01:00
parent 5e3a057965
commit 6d224df76a

View File

@ -683,14 +683,18 @@ Foam::Field<bool> Foam::conformationSurfaces::wellInOutSide
vector hitDir = info[0].rawPoint() - samplePts[i]; vector hitDir = info[0].rawPoint() - samplePts[i];
hitDir /= mag(hitDir) + SMALL; hitDir /= mag(hitDir) + SMALL;
if pointIndexHit surfHit;
label hitSurface;
findSurfaceNearestIntersection
( (
findSurfaceAnyIntersection samplePts[i],
( info[0].rawPoint(),
samplePts[i], surfHit,
info[0].rawPoint() - 1e-3*mag(hitDir)*(hitDir) hitSurface
) );
)
if (surfHit.hit() && hitSurface != surfaces_[s])
{ {
continue; continue;
} }