40 #ifndef faceAreaIntersect_H 41 #define faceAreaIntersect_H 93 bool cacheTriangulation_;
116 inline void setTriPoints
126 inline point planeIntersection
135 void triSliceWithPlane
145 void triangleIntersect
168 const bool reverseB =
false,
220 const scalar threshold
static scalar & tolerance()
Fraction of local length scale to use as intersection tolerance.
A face is a list of labels corresponding to mesh vertices.
A 1D vector of objects of type <T> with a fixed length <N>.
bool overlaps(const face &faceA, const face &faceB, const vector &n, const scalar threshold) const
Return area of intersection of faceA with faceB.
void calc(const face &faceA, const face &faceB, const vector &n, scalar &area, vector ¢roid) const
Return area of intersection of faceA with faceB and effective face centre.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
bool cacheTriangulation() const
Const access to the cacheTriangulation flag.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const wordList area
Standard area field types (scalar, vector, tensor, etc)
Triangle point storage. Default constructable (triangle is not)
void reverse(UList< T > &list, const label n)
Reverse the first n elements of the list.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static void triangleFan(const face &f, DynamicList< face > &faces)
Decompose face into triangle fan.
const DynamicList< triPoints > triangles() const
Const access to the triangulation.
const dimensionedScalar c
Speed of light in a vacuum.
static const Enum< triangulationMode > triangulationModeNames_
static void triangulate(const face &f, const pointField &points, const triangulationMode &triMode, faceList &faceTris)
Triangulate a face using the given triangulation mode.
faceAreaIntersect(const pointField &pointsA, const pointField &pointsB, const DynamicList< face > &trisA, const DynamicList< face > &trisB, const bool reverseB=false, const bool cacheTriangulation=false)
Construct from components.