Go to the documentation of this file.
26 #include "surfaceMeshWriter.H"
27 #include "writeFuns.H"
45 ios_base::out|ios_base::binary)
57 nFaceVerts += pp[faceI].size() + 1;
60 os_ <<
"POINTS " << pp.nPoints() <<
" double" <<
std::endl;
62 DynamicList<doubleScalar> ptField(3*pp.nPoints());
67 os_ <<
"POLYGONS " << pp.size() <<
' ' << nFaceVerts <<
std::endl;
69 DynamicList<label> vertLabels(nFaceVerts);
73 const face&
f = pp.localFaces()[faceI];
75 vertLabels.append(
f.size());
#define forAll(list, i)
Loop across all elements in list.
PrimitivePatch< face, IndirectList, const pointField & > indirectPrimitivePatch
Foam::indirectPrimitivePatch.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
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 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.
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
word name(const complex &)
Return a string representation of a complex.