31 template<
class Po
intField>
64 return y[0]*srcPsis[0] +
y[1]*srcPsis[1] +
y[2]*srcPsis[2];
74 const label yi0 = (yMini + 1) % 3, yi1 = (yi0 + 1) % 3;
75 return (
y[yi0]*srcPsis[yi0] +
y[yi1]*srcPsis[yi1])/(
y[yi0] +
y[yi1]);
81 return srcPsis[yMaxi];
92 return y.a()*tgtPsis[0] +
y.b()*tgtPsis[1] +
y.c()*tgtPsis[2];
Templated 2D Barycentric derived from VectorSpace. Has 3 components, one of which is redundant.
void size(const label)
Override size to be inconsistent with allocated storage.
A class for handling words, derived from string.
Type tgtTriInterpolate(const barycentric2D &y, const FixedList< Type, 3 > &tgtPsis)
Use the coordinates obtained from srcPointTgtTriIntersection to interpolate.
void writePolygon(const word &name, const PointField &ps)
Write a VTK file of a polygon.
Type srcTriInterpolate(const barycentric2D &y, const FixedList< Type, 3 > &tgtPsis)
Use the coordinates obtained from srcTriTgtPointIntersection to interpolate.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label findMax(const ListType &, const label start=0)
Find index of max element (and larger than given element).
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
List< labelList > labelListList
A List of labelList.
label findMin(const ListType &, const label start=0)
Find index of min element (and less than given element).
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.
Ostream & indent(Ostream &os)
Indent stream.
Functions with which to perform an intersection of a pair of triangles; the source and target....