31 template<
class Po
intField>
37 return (1.0/3.0)*(ps[0] + ps[1] + ps[2]);
59 const vector a = (pNext -
p)^(pAvg - p);
76 const vector a = (pNext -
p)^(pAvg - p);
77 const vector c = p + pNext + pAvg;
79 const scalar an = a & sumAHat;
90 return (1.0/3.0)*sumAnc/sumAn;
99 template<
class Po
intField>
105 return 0.5*((ps[1] - ps[0])^(ps[2] - ps[0]));
127 const vector a = (pNext -
p)^(pAvg - p);
139 template<
unsigned SizeInc,
unsigned SizeMult,
unsigned SizeDiv>
153 return split(SPLITTRIANGLE, points, triI, quadI, triFaces, quadFaces);
199 const vector a = (pNext -
p)^(pAvg - p);
214 const vector a = (pNext -
p)^(pAvg - p);
220 const scalar an = a & sumAHat;
231 return (1.0/3.0)*sumAnf/sumAn;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
T & operator[](const label)
Return element of UList.
void size(const label)
Override size to be inconsistent with allocated storage.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
static vector area(const PointField &ps)
Return vector area given face points.
const dimensionedScalar & c
Speed of light in a vacuum.
label triangles(const pointField &points, label &triI, faceList &triFaces) const
Split into triangles using existing points.
void setSize(const label)
Alter the addressed list size.
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Type average(const pointField &, const Field< Type > &) const
Calculate average value at centroid of face.
static vector centre(const PointField &ps)
Return centre point given face points.
label nTriangles() const
Number of triangles after splitting.
label size() const
Return the number of elements in the UList.