mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: meshToMeshNew - use FACEPLANES method for direct method pointInCell
This commit is contained in:
@ -44,7 +44,12 @@ bool Foam::directMethod::intersect
|
|||||||
const label tgtCellI
|
const label tgtCellI
|
||||||
) const
|
) 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];
|
label tgtI = tgtNbr[j];
|
||||||
|
|
||||||
if (tgt_.pointInCell(srcCentre[srcI], tgtI))
|
if
|
||||||
|
(
|
||||||
|
tgt_.pointInCell
|
||||||
|
(
|
||||||
|
srcCentre[srcI],
|
||||||
|
tgtI,
|
||||||
|
polyMesh::FACEPLANES
|
||||||
|
)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
// new match - append to lists
|
// new match - append to lists
|
||||||
found = true;
|
found = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user