35 const Foam::label Foam::tetMatcher::vertPerCell = 4;
36 const Foam::label Foam::tetMatcher::facePerCell = 4;
37 const Foam::label Foam::tetMatcher::maxVertPerFace = 3;
86 if (numVert != vertPerCell)
107 label face3vert0 = 0;
200 if (myFaces.
size() != 4)
207 label size = faces[myFaces[myFaceI]].
size();
void calcPointFaceIndex()
Fill vertex/face to index in face data structure.
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.
virtual bool isA(const primitiveMesh &mesh, const label cellI)
Exact match. Uses faceSizeMatch.
virtual bool matches(const primitiveMesh &mesh, const label cellI, cellShape &shape)
Like isA but also constructs a cellShape (if shape matches)
Base class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh ...
labelList faceSize_
Number of vertices per face in localFaces_.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
const labelList & vertLabels() const
const cellList & cells() const
Various functions to operate on Lists.
virtual bool faceSizeMatch(const faceList &, const labelList &) const
Check whether number of face sizes match the shape.
virtual const faceList & faces() const =0
Return faces.
void calcEdgeAddressing(const label numVert)
Fill edge (start, end) to face number.
labelList faceLabels_
After matching: holds mesh faces in cellmodel order.
faceList localFaces_
Faces using local vertex numbering.
A face is a list of labels corresponding to mesh vertices.
An analytical geometric cellShape.
Cell-face mesh analysis engine.
void setSize(const label)
Reset size of List.
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.
labelList pointMap_
Map from local to mesh vertex numbering.
label calcLocalFaces(const faceList &faces, const labelList &myFaces)
Calculates localFaces. Returns number of local vertices (or -1.
tetMatcher()
Construct null.
labelList vertLabels_
After matching: holds mesh vertices in cellmodel order.
const cellModel & model() const
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
static label nextVert(const label, const label, const bool)
Step along face either in righthand or lefthand direction.
List< label > labelList
A List of labels.
virtual label faceHashValue() const
Hash value of all face sizes of this shape. Can be used for.
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
labelListList pointFaceIndex_
pointFaceIndex[localVertI][localFaceI] is index in localFace
labelList faceMap_
Map from local to mesh face numbering.