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