Go to the documentation of this file.
40 #ifndef faceAreaIntersect_H
41 #define faceAreaIntersect_H
93 bool cacheTriangulation_;
116 inline void setTriPoints
126 inline point planeIntersection
135 inline scalar triArea(
const triPoints& t)
const;
141 void triSliceWithPlane
151 void triangleIntersect
174 const bool reverseB =
false,
226 const scalar threshold
void reverse(UList< T > &list, const label n)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
static void triangulate(const face &f, const pointField &points, const triangulationMode &triMode, faceList &faceTris)
Triangulate a face using the given triangulation mode.
void calc(const face &faceA, const face &faceB, const vector &n, scalar &area, vector ¢roid) const
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
static const Enum< triangulationMode > triangulationModeNames_
Triangle storage. Null constructable (unfortunately triangle<point, point> is not)
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.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
bool overlaps(const face &faceA, const face &faceB, const vector &n, const scalar threshold) const
Return area of intersection of faceA with faceB.
bool cacheTriangulation() const
Const access to the cacheTriangulation flag.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
static scalar & tolerance()
Fraction of local length scale to use as intersection tolerance.
A 1D vector of objects of type <T> with a fixed length <N>.
const wordList area
Standard area field types (scalar, vector, tensor, etc)
const dimensionedScalar c
Speed of light in a vacuum.
A face is a list of labels corresponding to mesh vertices.
const DynamicList< triPoints > triangles() const
Const access to the triangulation.
static void triangleFan(const face &f, DynamicList< face > &faces)
Decompose face into triangle fan.