Go to the documentation of this file.
65 if (!faceSizeMatch(faces, myFaces))
77 label numVert = calcLocalFaces(faces, myFaces);
79 if (numVert != vertPerCell)
85 calcEdgeAddressing(numVert);
91 vertLabels_.setSize(vertPerCell);
92 faceLabels_.setSize(facePerCell);
102 if (faceSize_[facei] == 3)
109 const face& face0 = localFaces_[face0I];
112 for (
label face0vert0 = 0; face0vert0 < faceSize_[face0I]; face0vert0++)
119 vertLabels_[0] = pointMap_[face0[face0vert0]];
120 faceLabels_[0] = faceMap_[face0I];
128 !(owner[faceMap_[face0I]] == celli)
130 vertLabels_[1] = pointMap_[face0[face0vert1]];
142 if (faceSize_[face1I] != 3)
146 faceLabels_[1] = faceMap_[face1I];
157 !(owner[faceMap_[face0I]] == celli)
159 vertLabels_[2] = pointMap_[face0[face0vert2]];
170 faceLabels_[3] = faceMap_[face3I];
181 faceLabels_[2] = faceMap_[face2I];
184 label face3vert2 = pointFaceIndex_[face0[face0vert2]][face3I];
192 (owner[faceMap_[face3I]] == celli)
195 const face& face3 = localFaces_[face3I];
197 vertLabels_[4] = pointMap_[face3[face3vert4]];
205 (owner[faceMap_[face3I]] == celli)
207 vertLabels_[3] = pointMap_[face3[face3vert3]];
229 if (myFaces.size() != 4)
237 for (
const label facei : myFaces)
239 const label size = faces[facei].size();
255 return (nTris == 2 && nQuads == 2);
305 shape =
cellShape(model(), vertLabels());
List< label > labelList
A List of labels.
static constexpr const zero Zero
Global zero.
const cellList & cells() const
~tetWedgeMatcher()
Destructor.
Base class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh ...
#define forAll(list, i)
Loop across all elements in list.
tetWedgeMatcher()
Construct null.
virtual bool matches(const primitiveMesh &mesh, const label celli, cellShape &shape)
Like isA but also constructs a cellShape (if shape matches)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual const labelList & faceOwner() const
Return face owner.
An analytical geometric cellShape.
virtual bool faceSizeMatch(const faceList &, const labelList &) const
Check whether number of face sizes match the shape.
virtual const faceList & faces() const
Return raw faces.
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
virtual bool isA(const primitiveMesh &mesh, const label celli)
Exact match. Uses faceSizeMatch.
A face is a list of labels corresponding to mesh vertices.
Various functions to operate on Lists.
virtual bool matchShape(const bool checkOnly, const faceList &faces, const labelList &faceOwner, const label celli, const labelList &myFaces)
Low level shape recognition. Return true if matches.
virtual label faceHashValue() const
Hash value of all face sizes of this shape. Can be used for.
Cell-face mesh analysis engine.