Go to the documentation of this file.
43 const word formatName =
dict.lookupOrDefault<
word>(
"format",
"");
44 if (formatName.size())
46 opts.
ascii(IOstream::formatEnum(formatName) == IOstream::ASCII);
54 IOstream::defaultPrecision()
73 .xmlComment(
"surface written " + clock::dateTime())
74 .beginVTKFile<vtk::fileTag::POLY_DATA>();
81 vtk::fileAttr::NUMBER_OF_POINTS, pts.
size(),
82 vtk::fileAttr::NUMBER_OF_POLYS, nFaces
88 const uint64_t payLoad = vtk::sizeofData<float, 3>(pts.
size());
90 format.tag(vtk::fileTag::POINTS)
91 .beginDataArray<float, 3>(vtk::dataArrayAttr::POINTS);
100 .endTag(vtk::fileTag::POINTS);
111 format.endTag(vtk::fileTag::POLY_DATA)
131 const uint64_t payLoad = vtk::sizeofData<label>(nFaces);
135 format.writeSize(payLoad);
159 const uint64_t payLoad = vtk::sizeofData<label>(zoneIds.
size());
164 format.writeSize(payLoad);
Encapsulated combinations of output format options. This is primarily useful when defining the output...
A class for handling words, derived from Foam::string.
unsigned precision() const
Return the ASCII write precision.
bool legacy() const
True if writer uses legacy file format.
word format(conversionProperties.get< word >("format"))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool ascii() const
True if output format is ASCII.
bool append() const
True if output format uses an append mode.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A surface zone on a MeshedSurface.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.