56 maxFaces += cFaces[cellI].
size();
59 Info<<
"Maximum possible number of faces in mesh: " << maxFaces <<
endl;
89 label cellI = -(baffleOffset + baffleI);
97 const labelList& curNeighbours = ptCells[curPoints[0]];
99 label nNeighbours = 0;
102 forAll(curNeighbours, neiI)
104 label curNei = curNeighbours[neiI];
107 const faceList& searchFaces = cFaces[curNei];
109 forAll(searchFaces, neiFaceI)
125 #ifdef DEBUG_FACE_ORDERING
126 Info<<
"cmp " << cmp <<
" matched " << curFace
127 <<
" with " << searchFaces[neiFaceI]
131 Info<<
"match " << baffleI
132 <<
" (" <<
origCellId_[baffleOffset+baffleI] <<
")"
134 <<
" against cell " << curNei
135 <<
" face " << neiFaceI
136 <<
" curFace " << curFace[1]
137 <<
" neiFace " << searchFaces[neiFaceI][1]
153 Info<<
"multiple matches for side " << side
154 <<
" of baffle " << baffleI
155 <<
" (original cell "
162 if (nNeighbours >= 2)
break;
165 if (nNeighbours == 2)
167 for (
label side = 0; side < nNeighbours; ++side)
180 Info<<
"drop baffle " << baffleI
181 <<
" (original cell "
183 <<
" with " << nNeighbours <<
" neighbours" <<
endl;
190 #ifdef DEBUG_CELLPOLY
208 const faceList& curFaces = cFaces[cellI];
216 label nNeighbours = 0;
226 const face& curFace = curFaces[faceI];
235 const labelList& curNeighbours = ptCells[curPoints[pointI]];
238 forAll(curNeighbours, neiI)
240 label curNei = curNeighbours[neiI];
247 const faceList& searchFaces = cFaces[curNei];
249 forAll(searchFaces, neiFaceI)
251 if (searchFaces[neiFaceI] == curFace)
254 neiCells[faceI] = curNei;
255 faceOfNeiCell[faceI] = neiFaceI;
257 #ifdef DEBUG_FACE_ORDERING
258 Info<<
" cell " << cellI
260 <<
" point " << pointI
262 <<
" neiFace " << neiFaceI
278 for (
label neiSearch = 0; neiSearch < nNeighbours; neiSearch++)
286 if (neiCells[ncI] > -1 && neiCells[ncI] < minNei)
289 minNei = neiCells[ncI];
302 cellPolys_[neiCells[nextNei]][faceOfNeiCell[nextNei]] =
306 neiCells[nextNei] = -1;
314 <<
"Error in internal face insertion"
320 #ifdef DEBUG_CELLPOLY