OGS
writeMeshToFile.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <vtkXMLWriter.h>
7
8#include <filesystem>
9#include <set>
10#include <string>
11
12namespace MeshLib
13{
14class Mesh;
15}
16
17namespace MeshLib::IO
18{
19[[nodiscard]] int writeMeshToFile(
20 MeshLib::Mesh const& mesh,
21 std::filesystem::path const& file_path,
22 std::set<std::string> output_variable_names = {},
23 bool const use_compression = false,
24 int const data_mode = vtkXMLWriter::Appended);
25} // namespace MeshLib::IO
int writeMeshToFile(const MeshLib::Mesh &mesh, std::filesystem::path const &file_path, std::set< std::string > output_variable_names, bool const use_compression, int const data_mode)