ENH: exact: new patchDistMethod

This commit is contained in:
mattijs
2019-02-18 15:31:42 +00:00
committed by Andrew Heather
parent 48055b2dea
commit 17a579bf92
5 changed files with 350 additions and 2 deletions

View File

@ -1240,7 +1240,7 @@ void Foam::distributedTriSurfaceMesh::surfaceSide
// Nearest to face interior. Use faceNormal to determine side
//scalar c = sampleNearestVec & surf.faceNormals()[facei];
scalar c = sampleNearestVec & surf[facei].normal(points);
scalar c = sampleNearestVec & surf[facei].areaNormal(points);
if (c > 0)
{
@ -1292,7 +1292,7 @@ void Foam::distributedTriSurfaceMesh::surfaceSide
label facei = pFaces[pFacei];
const triSurface::FaceType& f = surf[facei];
label fp = findIndex(f, pointi);
label fp = f.find(pointi);
label p1 = f[f.fcIndex(fp)];
label pMin1 = f[f.rcIndex(fp)];