44 void Foam::vtkSurfaceWriter::Write
46 const fileName& outputDir,
47 const fileName& surfaceName,
50 const word& fieldName,
51 const Field<Type>& values,
52 const bool isNodeValues
55 if (!
isDir(outputDir))
62 outputDir/fieldName +
'_' + surfaceName +
".vtk",
103 if (!
isDir(outputDir))
110 outputDir/surfaceName +
".vtk",
A class for handling file names.
virtual ~vtkSurfaceWriter()
Destructor.
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces) const
Write single surface geometry to file.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
vectorField pointField
pointField is a vectorField.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Convenience macros for instantiating writer methods for surfaceWriter classes.
streamFormat
Enumeration for the format of data in the stream.
defineSurfaceWriterWriteFields(nastranSurfaceWriter)
List< label > labelList
A List of labels.
void write(const fileName &file, const word &title, const bool binary, const PointField &points, const VertexList &vertices, const LineList &lines, const FaceList &faces, const wordList &fieldNames, const boolList &fieldIsPointValues, const UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesConstArg(Type, nullArg))
Write VTK polygonal data to a file. Takes a PtrList of fields of labels and.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
A surfaceWriter for VTK legacy format with support for writing ASCII or binary.
makeSurfaceWriterType(ensightSurfaceWriter)
vtkSurfaceWriter(const IOstream::streamFormat writeFormat)
Construct given write format.
Base class for surface writers.