76 static label badTimeIndex = -1;
84 if (!badFaces[
face()])
87 <<
"No base point for face " <<
face() <<
", " <<
f
88 <<
", produces a valid tet decomposition." <<
endl;
96 label facePtI = (tetPt() + faceBasePtI) %
f.
size();
101 Swap(facePtI, faceOtherPtI);
104 return triFace(
f[faceBasePtI],
f[facePtI],
f[faceOtherPtI]);
111 const triFace tri = faceTriIs(mesh);
126 const triFace tri = faceTriIs(mesh);
143 const triFace tri = faceTriIs(mesh);
147 meshOldPoints[tri[0]],
148 meshOldPoints[tri[1]],
149 meshOldPoints[tri[2]]
161 && tetPt() == rhs.
tetPt();
167 return !(*
this == rhs);
bool set(const Key &key)
Same as insert (cannot overwrite nil content)
void clear()
Clear all entries from table.
void size(const label)
Override size to be inconsistent with allocated storage.
label timeIndex() const
Return current time index.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
const Time & time() const
Return time.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
virtual const labelList & faceOwner() const
Return face owner.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
virtual const pointField & points() const
Return raw points.
const vectorField & cellCentres() const
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
label face() const
Return the face.
label tetPt() const
Return the characterising tetPtI.
bool operator==(const tetIndices &) const
label cell() const
Return the cell.
bool operator!=(const tetIndices &) const
triFace faceTriIs(const polyMesh &mesh) const
Return the indices corresponding to the tri on the face for.
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet.
triPointRef faceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
triPointRef oldFaceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
A triangular face using a FixedList of labels corresponding to mesh vertices.
A triangle primitive used to calculate face areas and swept volumes.
#define WarningInFunction
Report a warning using Foam::Warning.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
triangle< point, const point & > triPointRef
tetrahedron< point, const point & > tetPointRef