Wildmeshing Toolkit
Loading...
Searching...
No Matches
mesh_io.hpp
1#pragma once
2
3#include <mshio/mshio.h>
4#include <filesystem>
5#include <wmtk/MeshData.hpp>
6
7namespace wmtk::io {
8MeshData read_mesh(const std::filesystem::path& path);
9void write_mesh(const std::filesystem::path& path, const MeshData& mesh);
10
11// Shared with existing MSH adapters; these functions do not access the filesystem.
12MeshData from_msh(const mshio::MshSpec& spec);
13mshio::MshSpec to_msh(const MeshData& mesh);
14} // namespace wmtk::io