172 const scalar tol = 0.0
182 const scalar tol = 0.0
248 const uLabel val = (t0*t1*t2 + t0+t1+t2);
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> with a fixed size <Size>.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
unsigned operator()(const PrimitiveType &p, unsigned seed) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A face is a list of labels corresponding to mesh vertices.
A triangular face using a FixedList of labels corresponding to mesh vertices.
void flip()
Flip the face in-place.
static int compare(const triFace &, const triFace &)
Compare triFaces.
pointField points(const pointField &) const
Return the points corresponding to this face.
tensor inertia(const pointField &, const point &refPt=vector::zero, scalar density=1.0) const
Return the inertia tensor, with optional reference.
triFace reverseFace() const
Return face with reverse direction.
scalar mag(const pointField &) const
Return scalar magnitude.
int edgeDirection(const edge &) const
Return the edge direction on the face.
scalar sweptVol(const pointField &oldPoints, const pointField &newPoints) const
Return swept-volume.
point centre(const pointField &) const
Return centre (centroid)
vector area(const pointField &) const
Return vector area.
pointHit nearestPointClassify(const point &p, const pointField &points, label &nearType, label &nearLabel) const
Return nearest point to face and classify it:
vector normal(const pointField &) const
Return unit normal.
pointHit ray(const point &p, const vector &q, const pointField &points, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction dir=intersection::direction::vector) const
Return point intersection with a ray starting at p,.
pointHit nearestPoint(const point &p, const pointField &points) const
Return nearest point to face.
label collapse()
Collapse face by removing duplicate point labels.
face triFaceFace() const
Return triangle as a face.
label nTriangles() const
Number of triangles after splitting.
Type average(const pointField &, const Field< Type > &) const
Calculate average value at centroid of face.
edgeList edges() const
Return edges in face point ordering,.
pointHit intersection(const point &p, const vector &q, const pointField &points, const intersection::algorithm alg, const scalar tol=0.0) const
Fast intersection with a ray.
friend bool operator==(const triFace &, const triFace &)
friend bool operator!=(const triFace &, const triFace &)
triPointRef tri(const pointField &) const
Return the triangle.
label nEdges() const
Return number of edges.
edge faceEdge(const label n) const
Return n-th face edge.
A triangle primitive used to calculate face areas and swept volumes.
const dimensionedScalar c
Speed of light in a vacuum.
bool operator!=(const particle &, const particle &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
uintWM_LABEL_SIZE_t uLabel
A uLabel is an uint32_t or uint64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool contiguous< triFace >()
void offset(label &lst, const label o)