Go to the documentation of this file.
115 inline static label
nextVert(
const label,
const label,
const bool);
173 const label localFacei
190 const label vertPerCell,
191 const label facePerCell,
192 const label maxVertPerFace,
193 const word& cellModelName
247 const bool checkOnly,
cellMatcher(const cellMatcher &)=delete
No copy construct.
const word cellModelName_
CellModel name.
virtual label faceHashValue() const =0
Hash value of all face sizes of this shape. Can be used for.
labelListList pointFaceIndex_
pointFaceIndex[localVertI][localFacei] is index in localFace
A class for handling words, derived from Foam::string.
void write(Ostream &os) const
const faceList & localFaces() const
faceList localFaces_
Faces using local vertex numbering.
label calcLocalFaces(const faceList &faces, const labelList &myFaces)
Calculates localFaces. Returns number of local vertices (or -1.
void calcEdgeAddressing(const label numVert)
Fill edge (start, end) to face number.
cellMatcher & operator=(const cellMatcher &)=delete
No copy assignment.
const Map< label > & localPoint() const
Base class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh ...
virtual label nMaxVertPerFace() const =0
const labelList & vertLabels() const
labelList faceLabels_
After matching: holds mesh faces in cellmodel order.
labelList pointMap_
Map from local to mesh vertex numbering.
labelList edgeFaces_
Map from 'edge' to neighbouring faces.
const labelList & faceMap() const
static label nextVert(const label, const label, const bool)
Step along face either in righthand or lefthand direction.
void calcPointFaceIndex()
Fill vertex/face to index in face data structure.
virtual label nFacePerCell() const =0
const labelListList & pointFaceIndex() const
virtual bool matchShape(const bool checkOnly, const faceList &faces, const labelList &faceOwner, const label celli, const labelList &myFaces)=0
Low level shape recognition. Return true if matches.
virtual bool faceSizeMatch(const faceList &, const labelList &) const =0
Check whether number of face sizes match the shape.
OBJstream os(runTime.globalPath()/outputName)
const labelList & edgeFaces() const
An analytical geometric cellShape.
const labelList & faceSize() const
labelList vertLabels_
After matching: holds mesh vertices in cellmodel order.
static label edgeKey(const label numVert, const label v0, const label v1)
Given start and end of edge generate unique key.
labelList faceMap_
Map from local to mesh face 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.
const labelList & pointMap() const
virtual bool isA(const primitiveMesh &mesh, const label celli)=0
Exact match. Uses faceSizeMatch.
labelList faceSize_
Number of vertices per face in localFaces_.
const labelList & faceLabels() const
Maps a geometry to a set of cell primitives.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual label nVertPerCell() const =0
const cellModel & model() const
virtual bool matches(const primitiveMesh &mesh, const label celli, cellShape &shape)=0
Like isA but also constructs a cellShape (if shape matches)
virtual ~cellMatcher()=default
Destructor.
const cellModel * cellModelPtr_
Cell-face mesh analysis engine.