40 #ifndef prismMatcher_H 41 #define prismMatcher_H 61 static constexpr label vertPerCell = 6;
62 static constexpr label facePerCell = 5;
63 static constexpr label maxVertPerFace = 4;
101 return maxVertPerFace;
110 const bool checkOnly,
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.
An analytical geometric cellShape.
A cellMatcher for prism cells (cellModel::PRISM)
virtual label nVertPerCell() const
prismMatcher()
Default construct.
virtual bool isA(const primitiveMesh &mesh, const label celli)
Exact match. Uses faceSizeMatch.
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.
virtual label nFacePerCell() const
~prismMatcher()=default
Destructor.
virtual label nMaxVertPerFace() const
virtual bool faceSizeMatch(const faceList &, const labelList &) const
Check whether number of face sizes match the shape.