28 inline void Foam::faceAreaIntersect::setTriPoints
34 FixedList<triPoints, 10>& tris
55 result[2] = points[f[0]];
56 result[1] = points[f[1]];
57 result[0] = points[f[2]];
61 result[0] = points[f[0]];
62 result[1] = points[f[1]];
63 result[2] = points[f[2]];
70 inline void Foam::faceAreaIntersect::triangleFan
73 DynamicList<face>& faces
82 for (
label i = 1; i < f.size() - 1; i++)
86 indices[2] = f[i + 1];
87 faces.append(face(indices));
93 inline Foam::point Foam::faceAreaIntersect::planeIntersection
95 const FixedList<scalar, 3>& d,
101 return (d[posI]*t[negI] - d[negI]*t[posI])/(-d[negI] + d[posI]);
105 inline Foam::scalar Foam::faceAreaIntersect::triArea(
const triPoints& t)
const 107 return mag(0.5*((t[1] - t[0])^(t[2] - t[0])));
static scalar & tolerance()
Fraction of local length scale to use as intersection tolerance.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A 1D vector of objects of type <T> with a fixed size <Size>.
vectorField pointField
pointField is a vectorField.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
List< label > labelList
A List of labels.
vector point
Point is a vector.
FixedList< point, 3 > triPoints
const dimensionedScalar c
Speed of light in a vacuum.
dimensioned< scalar > mag(const dimensioned< Type > &)