27 #include "writeFuns.H" 54 nFaceVerts += pp[facei].size() + 1;
57 os_ <<
"POINTS " << pp.nPoints() <<
" float" <<
std::endl;
59 DynamicList<floatScalar> ptField(3*pp.nPoints());
64 os_ <<
"POLYGONS " << pp.size() <<
' ' << nFaceVerts <<
std::endl;
66 DynamicList<label> vertLabels(nFaceVerts);
70 const face& f = pp.localFaces()[facei];
72 vertLabels.append(f.size());
#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.
static void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
PrimitivePatch< face, IndirectList, const pointField & > indirectPrimitivePatch
Foam::indirectPrimitivePatch.
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
surfaceMeshWriter(const bool binary, const indirectPrimitivePatch &pp, const word &name, const fileName &)
Construct from components.