Go to the documentation of this file.
43 for (label i = 1; i <
f.size() - 1; ++i)
47 indices[2] =
f[i + 1];
54 inline void Foam::faceAreaIntersect::setTriPoints
96 inline Foam::point Foam::faceAreaIntersect::planeIntersection
98 const FixedList<scalar, 3>& d,
106 return (dp*t[negI] - dn*t[posI])/(-dn + dp);
110 inline Foam::scalar Foam::faceAreaIntersect::triArea(
const triPoints& t)
const
112 return mag(0.5*((t[1] - t[0])^(t[2] - t[0])));
116 inline Foam::vector Foam::faceAreaIntersect::triCentroid
121 return (t[0] + t[1] + t[2])/3;
135 return cacheTriangulation_;
vectorField pointField
pointField is a vectorField.
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.
Triangle storage. Null constructable (unfortunately triangle<point, point> is not)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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 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.