Go to the documentation of this file.
82 if (nWarnings < maxNWarnings)
85 <<
"No base point for face " <<
face() <<
", " <<
f
86 <<
", produces a valid tet decomposition." <<
endl;
89 if (nWarnings == maxNWarnings)
92 <<
"Suppressing any further warnings." <<
endl;
98 label facePtI = (tetPti_ + faceBasePtI) %
f.size();
99 label faceOtherPtI =
f.fcIndex(facePtI);
103 Swap(facePtI, faceOtherPtI);
106 return triFace(
f[faceBasePtI],
f[facePtI],
f[faceOtherPtI]);
126 if (nWarnings < maxNWarnings)
129 <<
"No base point for face " <<
face() <<
", " <<
f
130 <<
", produces a valid tet decomposition." <<
endl;
133 if (nWarnings == maxNWarnings)
136 <<
"Suppressing any further warnings." <<
endl;
142 label facePtI = (tetPti_ + faceBasePtI) %
f.size();
143 label faceOtherPtI =
f.fcIndex(facePtI);
147 Swap(facePtI, faceOtherPtI);
150 return triFace(faceBasePtI, facePtI, faceOtherPtI);
193 meshOldPoints[tri[0]],
194 meshOldPoints[tri[1]],
195 meshOldPoints[tri[2]]
207 && tetPt() == rhs.
tetPt();
213 return !(*
this == rhs);
virtual const pointField & points() const
Return raw points.
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet.
triFace triIs(const polyMesh &mesh, const bool warn=true) const
Return the local indices corresponding to the tri on the face.
bool operator==(const tetIndices &) const
label cell() const
Return the cell.
label face() const
Return the face.
triPointRef oldFaceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void Swap(DynamicList< T, SizeMin1 > &a, DynamicList< T, SizeMin2 > &b)
Mesh consisting of general polyhedral cells.
tetrahedron< point, const point & > tetPointRef
A triangle primitive used to calculate face normals and swept volumes.
triPointRef faceTri(const polyMesh &mesh) const
Return the geometry corresponding to the tri on the face for.
virtual const labelList & faceOwner() const
Return face owner.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
triFace faceTriIs(const polyMesh &mesh, const bool warn=true) const
Return the indices corresponding to the tri on the face for.
label tetPt() const
Return the characterising tetPtI.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
const vectorField & cellCentres() const
virtual const faceList & faces() const
Return raw faces.
A triangular face using a FixedList of labels corresponding to mesh vertices.
A face is a list of labels corresponding to mesh vertices.
bool operator!=(const tetIndices &) const
#define WarningInFunction
Report a warning using Foam::Warning.
A cell is defined as a list of faces with extra functionality.
triangle< point, const point & > triPointRef
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.