49 #ifndef Foam_vtk_GenericPatchWriter_H 50 #define Foam_vtk_GenericPatchWriter_H 65 template<
class PatchType>
143 virtual bool beginFile(std::string title =
"surface")
bool parallel() const noexcept
Parallel output requested?
const PatchType & patch() const noexcept
Reference to the originating face/points patch.
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
virtual bool beginFile(std::string title="surface")
Write file header (non-collective)
A class for handling file names.
bool writeProcIDs()
Write processor ids for each poly as CellData.
static bool & parRun() noexcept
Test if this a parallel run.
vtk::outputOptions opts() const noexcept
The output options in use.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
bool writeProcIDs(const label nValues)
Write nValues of processor ids as CellData or PointData (no-op in serial)
label nLocalPoints_
Local number of points.
virtual ~GenericPatchWriter()=default
Destructor.
virtual bool writeGeometry()
Write patch topology.
virtual bool beginFile(std::string title="")
Write file header (non-collective)
bool isPointData() const noexcept
True if output state corresponds to POINT_DATA.
bool writePolyGeometry(const pointField &points, const faceList &faces)
Low-level write face/point topology. Normally used by writeGeometry() in a derived class...
label nLocalPolys_
Local number of polys (faces)
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
XML inline base64, base64Formatter.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())