Go to the documentation of this file.
42 template<
class>
class FaceList,
49 const BoolListType& borderEdge,
51 const label currentZone,
68 label facei = changedFaces[i];
70 const labelList& fEdges = faceEdges[facei];
74 label edgeI = fEdges[fEdgeI];
76 if (!borderEdge[edgeI])
78 const labelList& eFaceLst = edgeFaces[edgeI];
82 label nbrFacei = eFaceLst[j];
87 newChangedFaces.
append(nbrFacei);
89 else if (
faceZone[nbrFacei] != currentZone)
93 <<
" at face " << nbrFacei
94 <<
" connects to zone " << currentZone
95 <<
" at face " << facei
103 if (newChangedFaces.empty())
109 changedFaces.
transfer(newChangedFaces);
118 template<
class>
class FaceList,
127 const BoolListType& borderEdge,
138 for (; startFacei <
faceZone.size(); ++startFacei)
143 markZone(
p, borderEdge, startFacei, zoneI,
faceZone);
158 template<
class>
class FaceList,
167 const BoolListType& includeFaces,
174 faceMap.resize(localFaces.size());
181 forAll(localFaces, oldFacei)
183 if (includeFaces[oldFacei])
189 pointUsed.set(localFaces[oldFacei]);
195 pointMap = pointUsed.sortedToc();
202 template<
class>
class FaceList,
215 const PointField&
points =
p.points();
220 bb = boundBox::invertedBox;
222 for (
const Face&
f :
p)
224 for (
const label pointi :
f)
226 if (pointUsed.set(pointi))
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
void append(const T &val)
Append an element at the end of the list.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
void transfer(List< T > &list)
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void clear()
Clear the list, i.e. set size to zero.
A bounding box defined in terms of min/max extrema points.
void setSize(const label newSize)
Alias for resize(const label)
A list of faces which address into the list of points.
void add(const boundBox &bb)
Extend to include the second box.