Go to the documentation of this file.
46 == IOstream::formatEnum(
"format",
dict, IOstream::BINARY)
51 dict.getOrDefault(
"precision", IOstream::defaultPrecision())
69 .xmlComment(
"surface written " + clock::dateTime())
70 .beginVTKFile<vtk::fileTag::POLY_DATA>();
77 vtk::fileAttr::NUMBER_OF_POINTS, pts.
size(),
78 vtk::fileAttr::NUMBER_OF_POLYS, nFaces
84 const uint64_t payLoad = vtk::sizeofData<float, 3>(pts.
size());
86 format.tag(vtk::fileTag::POINTS)
87 .beginDataArray<float, 3>(vtk::dataArrayAttr::POINTS);
96 .endTag(vtk::fileTag::POINTS);
107 format.endTag(vtk::fileTag::POLY_DATA)
127 const uint64_t payLoad = vtk::sizeofData<label>(nFaces);
130 format.beginDataArray<label>(
"region");
131 format.writeSize(payLoad);
155 const uint64_t payLoad = vtk::sizeofData<label>(zoneIds.
size());
158 format.beginDataArray<label>(
"region");
160 format.writeSize(payLoad);
Encapsulated combinations of output format options. This is primarily useful when defining the output...
unsigned precision() const
Return the ASCII write precision.
bool legacy() const
True if writer uses legacy file format.
word format(conversionProperties.get< word >("format"))
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)
Older name for setAddressableSize.