41 const label masterFaceLabel,
51 const face& masterFace = meshFaces[masterFaceLabel];
55 label oppositeFaceLabel = -1;
57 forAll(curFaceLabels, faceI)
60 const face& curFace = meshFaces[curFaceLabels[faceI]];
65 curFaceLabels[faceI] != masterFaceLabel
66 && curFace.
size() == masterFace.
size()
69 bool sharedPoint =
false;
75 const label l = curFace[pointI];
77 forAll(masterFace, masterPointI)
79 if (masterFace[masterPointI] == l)
86 if (sharedPoint)
break;
92 if (oppositeFaceLabel == -1)
95 oppositeFaceLabel = curFaceLabels[faceI];
101 Info<<
"Multiple faces not sharing vertex: "
102 << oppositeFaceLabel <<
" and "
103 << curFaceLabels[faceI] <<
endl;
110 return oppositeFaceLabel;
116 const label masterFaceLabel,
121 label oppFaceLabel = opposingFaceLabel(masterFaceLabel, meshFaces);
124 if (oppFaceLabel < 0)
138 const face& masterFace = meshFaces[masterFaceLabel];
139 const face& slaveFace = meshFaces[oppFaceLabel];
152 forAll(masterFace, pointI)
158 if (!usedEdges[edgeI])
162 e[edgeI].otherVertex(masterFace[pointI]);
164 if (otherVertex != -1)
169 forAll(slaveFace, slavePointI)
171 if (slaveFace[slavePointI] == otherVertex)
173 usedEdges[edgeI] =
true;
174 oppFace[pointI] = otherVertex;