32 const Foam::label Foam::prismMatcher::vertPerCell = 6;
33 const Foam::label Foam::prismMatcher::facePerCell = 5;
34 const Foam::label Foam::prismMatcher::maxVertPerFace = 4;
74 if (numVert != vertPerCell)
106 label face0vert0 = 0;
307 if (myFaces.
size() != 5)
317 label size = faces[myFaces[myFacei]].
size();
332 if ((nTris == 2) && (nQuads == 3))
~prismMatcher()
Destructor.
const labelList & vertLabels() const
#define forAll(list, i)
Loop across all elements in list.
A face is a list of labels corresponding to mesh vertices.
Base class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh ...
virtual bool matches(const primitiveMesh &mesh, const label celli, cellShape &shape)
Like isA but also constructs a cellShape (if shape matches)
Cell-face mesh analysis engine.
labelList faceMap_
Map from local to mesh face numbering.
An analytical geometric cellShape.
void size(const label)
Override size to be inconsistent with allocated storage.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
const cellList & cells() const
void calcEdgeAddressing(const label numVert)
Fill edge (start, end) to face number.
labelList vertLabels_
After matching: holds mesh vertices in cellmodel order.
labelListList pointFaceIndex_
pointFaceIndex[localVertI][localFacei] is index in localFace
virtual bool isA(const primitiveMesh &mesh, const label celli)
Exact match. Uses faceSizeMatch.
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.
void calcPointFaceIndex()
Fill vertex/face to index in face data structure.
label calcLocalFaces(const faceList &faces, const labelList &myFaces)
Calculates localFaces. Returns number of local vertices (or -1.
labelList faceSize_
Number of vertices per face in localFaces_.
List< label > labelList
A List of labels.
labelList faceLabels_
After matching: holds mesh faces in cellmodel order.
const cellModel & model() const
faceList localFaces_
Faces using local vertex numbering.
labelList pointMap_
Map from local to mesh vertex numbering.
label otherFace(const label numVert, const label v0, const label v1, const label localFacei) const
Given start,end of edge lookup both faces sharing it and return.
void setSize(const label)
Reset size of List.
virtual const faceList & faces() const =0
Return faces.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
virtual bool faceSizeMatch(const faceList &, const labelList &) const
Check whether number of face sizes match the shape.
static label nextVert(const label, const label, const bool)
Step along face either in righthand or lefthand direction.