46 const faceList& faces,
47 const labelList& owner,
49 const labelList& cellFaces
54 if (hex.matchShape(
false, faces, owner, celli, cellFaces))
56 return cellShape(hex.model(), hex.vertLabels());
58 if (tet.matchShape(
false, faces, owner, celli, cellFaces))
60 return cellShape(tet.model(), tet.vertLabels());
62 if (prism.matchShape(
false, faces, owner, celli, cellFaces))
64 return cellShape(prism.model(), prism.vertLabels());
66 if (pyr.matchShape(
false, faces, owner, celli, cellFaces))
68 return cellShape(pyr.model(), pyr.vertLabels());
70 if (wedge.matchShape(
false, faces, owner, celli, cellFaces))
72 return cellShape(wedge.model(), wedge.vertLabels());
74 if (tetWedge.matchShape(
false, faces, owner, celli, cellFaces))
76 return cellShape(tetWedge.model(), tetWedge.vertLabels());
Various functions to operate on Lists.
void size(const label n)
Older name for setAddressableSize.
static const cellModel & ref(const modelType model)
Look up reference to cellModel by enumeration. Fatal on failure.
An analytical geometric cellShape.
faceList collapsedFaces() const
Collapsed faces of this cell.
static cellShape match(const primitiveMesh &mesh, const label celli)
Recognize shape given mesh and celli.
A cellMatcher for hex cells (cellModel::HEX).
Cell-face mesh analysis engine.
A cellMatcher for prism cells (cellModel::PRISM).
A cellMatcher for pyr cells (cellModel::PYR).
A cellMatcher for tet cells (cellModel::TET).
A cellMatcher for tetWedge cells (cellModel::TETWEDGE).
A cellMatcher for wedge cells (cellModel::WEDGE).
List< label > labelList
A List of labels.
List< face > faceList
List of faces.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
static constexpr const zero Zero
Global zero (0).