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