43 for (label i = 1; i <
f.
size() - 1; ++i)
47 indices[2] =
f[i + 1];
54inline void Foam::faceAreaIntersect::setTriPoints
96inline Foam::point Foam::faceAreaIntersect::planeIntersection
98 const FixedList<scalar, 3>& d,
106 return (dp*t[negI] - dn*t[posI])/(-dn + dp);
110inline Foam::scalar Foam::faceAreaIntersect::triArea(
const triPoints& t)
const
112 return mag(0.5*((t[1] - t[0])^(t[2] - t[0])));
121 return (t[0] + t[1] + t[2])/3;
135 return cacheTriangulation_;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
A 1D vector of objects of type <T> with a fixed length <N>.
void size(const label n)
Older name for setAddressableSize.
static void triangleFan(const face &f, DynamicList< face > &faces)
Decompose face into triangle fan.
const DynamicList< triPoints > triangles() const
Const access to the triangulation.
bool cacheTriangulation() const
Const access to the cacheTriangulation flag.
static scalar & tolerance()
Fraction of local length scale to use as intersection tolerance.
A face is a list of labels corresponding to mesh vertices.
Triangle storage. Null constructable (unfortunately triangle<point, point> is not)
void reverse(UList< T > &list, const label n)
Reverse the first n elements of the list.
vectorField pointField
pointField is a vectorField.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)