mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polyMeshFilter: enhanced checking (for merged points, map < -1)
This commit is contained in:
@ -267,7 +267,11 @@ Foam::label Foam::polyMeshFilter::filterFacesLoop(const label nOriginalBadFaces)
|
|||||||
newBadFaces = false;
|
newBadFaces = false;
|
||||||
forAll(mesh_.points(), pI)
|
forAll(mesh_.points(), pI)
|
||||||
{
|
{
|
||||||
if (isErrorPoint[origToCurrentPointMap[pI]])
|
if
|
||||||
|
(
|
||||||
|
origToCurrentPointMap[pI] >= 0
|
||||||
|
&& isErrorPoint[origToCurrentPointMap[pI]]
|
||||||
|
)
|
||||||
{
|
{
|
||||||
if (!newErrorPoint[pI])
|
if (!newErrorPoint[pI])
|
||||||
{
|
{
|
||||||
@ -862,14 +866,22 @@ void Foam::polyMeshFilter::updateOldToNewPointMap
|
|||||||
{
|
{
|
||||||
label oldPointI = origToCurrentPointMap[origPointI];
|
label oldPointI = origToCurrentPointMap[origPointI];
|
||||||
|
|
||||||
if (oldPointI < currToNew.size())
|
if (oldPointI != -1)
|
||||||
{
|
{
|
||||||
label newPointI = currToNew[oldPointI];
|
label newPointI = currToNew[oldPointI];
|
||||||
|
|
||||||
if (newPointI != -1)
|
if (newPointI >= 0)
|
||||||
{
|
{
|
||||||
origToCurrentPointMap[origPointI] = newPointI;
|
origToCurrentPointMap[origPointI] = newPointI;
|
||||||
}
|
}
|
||||||
|
else if (newPointI == -1)
|
||||||
|
{
|
||||||
|
origToCurrentPointMap[origPointI] = -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
origToCurrentPointMap[origPointI] = -newPointI-2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user