From b74b7bdc9435a0809a9bf532988858553493cf83 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 19 Nov 2013 11:51:24 +0000 Subject: [PATCH] ENH: meshToMeshNew - use FACEPLANES method for direct method pointInCell --- .../calcMethod/direct/directMethod.C | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C b/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C index 2a43bb7ba2..75f9252ef2 100644 --- a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C +++ b/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C @@ -44,7 +44,12 @@ bool Foam::directMethod::intersect const label tgtCellI ) const { - return tgt_.pointInCell(src_.cellCentres()[srcCellI], tgtCellI); + return tgt_.pointInCell + ( + src_.cellCentres()[srcCellI], + tgtCellI, + polyMesh::FACEPLANES + ); } @@ -191,7 +196,15 @@ void Foam::directMethod::appendToDirectSeeds { label tgtI = tgtNbr[j]; - if (tgt_.pointInCell(srcCentre[srcI], tgtI)) + if + ( + tgt_.pointInCell + ( + srcCentre[srcI], + tgtI, + polyMesh::FACEPLANES + ) + ) { // new match - append to lists found = true;