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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
Foam::indirectPrimitivePatch.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
surfaceMeshWriter(const bool binary, const indirectPrimitivePatch &pp, const word &name, const fileName &)
Construct from components.