Go to the documentation of this file.
37 #ifndef faceAreaIntersect_H
38 #define faceAreaIntersect_H
156 const bool reverseB =
false
void triangleFan(const face &f, DynamicList< face > &faces) const
Decompose face into triangle fan.
const pointField & pointsA_
Reference to the points of sideA.
const pointField & pointsB_
Reference to the points of sideB.
static const NamedEnum< triangulationMode, 2 > triangulationModeNames_
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
const bool reverseB_
Flag to reverse B faces.
void setTriPoints(const point &a, const point &b, const point &c, label &count, FixedList< triPoints, 10 > &tris) const
Set triPoints into tri list.
scalar triangleIntersect(const triPoints &src, const triPoints &tgt, const vector &n)
Return area of intersection of triangles src and tgt.
void triSliceWithPlane(const triPoints &tri, const plane &p, FixedList< triPoints, 10 > &tris, label &nTris, const scalar len)
Slice triangle with plane and generate new cut sub-triangles.
point planeIntersection(const FixedList< scalar, 3 > &d, const triPoints &t, const label negI, const label posI) const
Return point of intersection between plane and triangle edge.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
Triangle storage. Null constructable (unfortunately triangle<point, point> is not)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
triPoints getTriPoints(const pointField &points, const face &f, const bool reverse) const
Get triPoints from face.
scalar triArea(const triPoints &t) const
Return triangle area.
static scalar & tolerance()
Fraction of local length scale to use as intersection tolerance.
A 1D vector of objects of type <T> with a fixed size <Size>.
scalar calc(const face &faceA, const face &faceB, const vector &n, const triangulationMode &triMode)
Return area of intersection of faceA with faceB.
const dimensionedScalar c
Speed of light in a vacuum.
A face is a list of labels corresponding to mesh vertices.
faceAreaIntersect(const pointField &pointsA, const pointField &pointsB, const bool reverseB=false)
Construct from components.
void reverse(UList< T > &, const label n)