mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add face/triFace contains(edge) method (#3004)
STYLE: use contains() and reduce reliance on edgeDirection -1/+1 values
This commit is contained in:
@ -1174,8 +1174,7 @@ Foam::label Foam::distributedTriSurfaceMesh::findOtherFace
|
||||
{
|
||||
if (facei != nearFacei)
|
||||
{
|
||||
int dir = surf[facei].edgeDirection(e);
|
||||
if (dir != 0)
|
||||
if (surf[facei].contains(e))
|
||||
{
|
||||
return facei;
|
||||
}
|
||||
@ -1211,7 +1210,7 @@ void Foam::distributedTriSurfaceMesh::calcFaceFaces
|
||||
{
|
||||
if (otherFacei != facei)
|
||||
{
|
||||
if (s[otherFacei].edgeDirection(e) != 0)
|
||||
if (s[otherFacei].contains(e))
|
||||
{
|
||||
if (!nbrs.find(otherFacei))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user