47 const auto* ptr = isA<pointSet>(set);
50 return vtk::writePointSet(
mesh, *ptr, opts, file, parallel);
54 const auto* ptr = isA<faceSet>(set);
57 return vtk::writeFaceSet(
mesh, *ptr, opts, file, parallel);
61 const auto* ptr = isA<cellSet>(set);
64 return vtk::writeCellSetFaces(
mesh, *ptr, opts, file, parallel);
69 <<
"No VTK writer for '" << set.type() <<
"' topoSet" <<
nl <<
endl;
A class for handling file names.
Mesh consisting of general polyhedral cells.
General set of labels of mesh quantity (points, cells, faces).
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Write topoSet in VTK format.
#define WarningInFunction
Report a warning using Foam::Warning.
bool writeTopoSet(const polyMesh &mesh, const topoSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=Pstream::parRun())
Dispatch to vtk::writeCellSetFaces, vtk::writeFaceSet, vtk::writePointSet.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)