42 const label facei = cFaces[cFacei];
50 if ((normal & proj) > 0)
71 const label facei = cFaces[cFacei];
83 nextPointi =
f.nextLabel(fPointi);
87 pointi =
f.nextLabel(fPointi);
88 nextPointi =
f[fPointi];
100 if ((faceTri.
area() & proj) > 0)
122 const label facei = cFaces[cFacei];
125 for (
label tetPti = 1; tetPti <
f.size() - 1; tetPti++)
132 if ((faceTri.
area() & proj) > 0)
150 return polyMeshTetDecomposition::findTet(
mesh, celli,
p).face() != -1;
164 case pointInCellShapes::facePlanes:
166 case pointInCellShapes::faceCentreTris:
168 case pointInCellShapes::faceDiagonalTris:
170 case pointInCellShapes::tets:
#define forAll(list, i)
Loop across all elements in list.
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
virtual const labelList & faceOwner() const
Return face owner.
virtual const pointField & points() const
Return raw points.
const vectorField & faceCentres() const
const vectorField & faceAreas() const
const cellList & cells() const
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
triPointRef faceTri(const polyMesh &mesh, const pointField &meshPoints) const
Return the geometry corresponding to the tri on the face for.
A triangle primitive used to calculate face areas and swept volumes.
vector area() const
Return vector area.
Point centre() const
Return centre (centroid)
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const cellShapeList & cellShapes
bool pointInCellFaceDiagTris(const point &p, const polyMesh &mesh, const label celli)
Test if a point is in a given cell. For each of the cell's faces,.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
pointInCellShapes
Enumeration for the sub-shapes used to perform the inside calculation.
bool pointInCellFaceCentreTris(const point &p, const polyMesh &mesh, const label celli)
Test if a point is in a given cell. For each of the cell's faces,.
bool pointInCellTets(const point &p, const polyMesh &mesh, const label celli)
Test if a point is in a given cell by decomposing the cell into tetrahedra.
bool pointInCellFacePlanes(const point &p, const polyMesh &mesh, const label celli)
Test if a point is in a given cell. For each of the cell's faces, define a.
bool pointInCell(const point &p, const polyMesh &mesh, const label celli, const pointInCellShapes=pointInCellShapes::tets)
Test if a point is in a given cell.
Function for determining if a point is within a cell of a polyMesh.