41 const label masterFaceLabel,
53 const face& masterFace = meshFaces[masterFaceLabel];
57 label oppositeFaceLabel = -1;
59 forAll(curFaceLabels, facei)
62 const face& curFace = meshFaces[curFaceLabels[facei]];
67 curFaceLabels[facei] != masterFaceLabel
68 && curFace.
size() == masterFace.
size()
71 bool sharedPoint =
false;
77 const label l = curFace[pointi];
79 forAll(masterFace, masterPointi)
81 if (masterFace[masterPointi] == l)
88 if (sharedPoint)
break;
94 if (oppositeFaceLabel == -1)
97 oppositeFaceLabel = curFaceLabels[facei];
109 return oppositeFaceLabel;
115 const label masterFaceLabel,
120 label oppFaceLabel = opposingFaceLabel(masterFaceLabel, meshFaces);
123 if (oppFaceLabel < 0)
137 const face& masterFace = meshFaces[masterFaceLabel];
138 const face& slaveFace = meshFaces[oppFaceLabel];
151 forAll(masterFace, pointi)
157 if (!usedEdges[edgeI])
161 e[edgeI].otherVertex(masterFace[pointi]);
163 if (otherVertex != -1)
168 forAll(slaveFace, slavePointi)
170 if (slaveFace[slavePointi] == otherVertex)
172 usedEdges[edgeI] =
true;
173 oppFace[pointi] = otherVertex;
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
oppositeFace opposingFace(const label masterFaceLabel, const faceUList &meshFaces) const
Return opposite face oriented the same way as the master face.
label opposingFaceLabel(const label masterFaceLabel, const faceUList &meshFaces) const
Return index of opposite face.
A face is a list of labels corresponding to mesh vertices.
Class containing opposite face for a prismatic cell with addressing and a possibility of failure.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.