139 template<
class FaceType>
149 template<
class FaceType>
272 const label startEdgeI,
273 const label startVertI,
static const label mXmYmZ
label getSharedEdge(const primitiveMesh &, const label f0, const label f1)
Return edge shared by two faces. Throws error if no edge found.
vector normEdgeVec(const primitiveMesh &, const label edgeI)
Normalized edge vector.
label getSharedFace(const primitiveMesh &, const label cell0, const label cell1)
Return face shared by two cells. Throws error if none found.
static const label mXpYpZ
void getEdgeFaces(const primitiveMesh &, const label cellI, const label edgeI, label &face0, label &face1)
Get faces on cell using edgeI. Throws error if no two found.
vectorField calcBoxPointNormals(const primitivePatch &pp)
Calculate point normals on a 'box' mesh (all edges aligned with.
label cutDirToEdge(const primitiveMesh &, const label cellI, const vector &cutDir)
Reverse of edgeToCutDir: given direction find edge bundle and.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const label mXmYpZMask
bool faceOnCell(const primitiveMesh &, const label cellI, const label faceI)
Is face used by cell.
static const label mXmYmZMask
static const label pXmYpZMask
vector edgeToCutDir(const primitiveMesh &, const label cellI, const label edgeI)
Given edge on hex find all 'parallel' (i.e. non-connected)
static const label mXmYpZ
bool edgeOnCell(const primitiveMesh &, const label cellI, const label edgeI)
Is edge used by cell.
Cell-face mesh analysis engine.
void constrainDirection(const polyMesh &mesh, const Vector< label > &dirs, vector &d)
Set the constrained components of directions/velocity to zero.
void getParallelEdges(const primitiveMesh &, const label cellI, const label e0, label &, label &, label &)
Given edge on hex find other 'parallel', non-connected edges.
Representation of a 3D Cartesian coordinate system as a Vector of vectors.
static const label pXpYmZMask
label otherFace(const primitiveMesh &, const label cellI, const label faceI, const label edgeI)
Return face on cell using edgeI but not faceI. Throws error.
static const label pXpYmZ
A list of faces which address into the list of points.
label otherEdge(const primitiveMesh &, const labelList &edgeLabels, const label edgeI, const label vertI)
Return label of other edge (out of candidates edgeLabels)
static const label mXpYmZ
Mesh consisting of general polyhedral cells.
static const label pXpYpZ
static const label pXpYpZMask
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void constrainToMeshCentre(const polyMesh &mesh, point &pt)
Set the constrained components of position to mesh centre.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label walkFace(const primitiveMesh &, const label faceI, const label startEdgeI, const label startVertI, const label nEdges)
Returns label of edge nEdges away from startEdge (in the direction.
label otherCell(const primitiveMesh &, const label cellI, const label faceI)
Return cell on other side of face. Throws error.
bool edgeOnFace(const primitiveMesh &, const label faceI, const label edgeI)
Is edge used by face.
static const label mXpYmZMask
label findEdge(const edgeList &edges, const labelList &candidates, const label v0, const label v1)
Return edge among candidates that uses the two vertices.
void writeOBJ(Ostream &os, const point &pt)
Write obj representation of point.
static const label pXmYmZMask
static const label mXpYpZMask
static const label pXmYpZ
static const label pXmYmZ
bool visNormal(const vector &n, const vectorField &faceNormals, const labelList &faceLabels)
Check if n is in same direction as normals of all faceLabels.