33template<
class ListType>
34inline void Foam::labelledTri::assignList(
const ListType& list)
36 const label len = list.size();
39 if (len < 3 || len > 4)
42 <<
"size " << len <<
" != (3 or 4)"
46 auto iter = list.begin();
48 for (label i=0; i<3; ++i)
54 index_ = (len == 4) ? *iter : 0;
128 index_(triIndices.region())
152 Detail::readContiguous<labelledTri>
155 reinterpret_cast<char*
>(&t),
177 reinterpret_cast<const char*
>(&t),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A 1D vector of objects of type <T> with a fixed length <N>.
label & operator[](const label i)
Return element of FixedList.
streamFormat format() const noexcept
Get the current stream format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A triFace with additional (region) index.
labelledTri()
Default construct, with invalid point labels and region (-1).
label index() const noexcept
Return the index (eg, the region)
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A triangular face using a FixedList of labels corresponding to mesh vertices.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
errorManip< error > abort(error &err)