Wildmeshing Toolkit
Loading...
Searching...
No Matches
output.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <wmtk/Mesh.hpp>
4
5#include <filesystem>
6
7
8namespace wmtk::components {
9 namespace multimesh {
10 class NamedMultiMesh;
11 }
12
13 namespace output {
14 struct OutputOptions;
35void output(
36 const Mesh& mesh,
37 const std::filesystem::path& file,
38 const std::string& position_attr_name = {});
39
60void output(
61 const Mesh& mesh,
62 const std::filesystem::path& file,
63 const attribute::MeshAttributeHandle& position_attr);
64
65void output(
66 const Mesh& mesh,
67 const OutputOptions&);
68
69void output(
70 const multimesh::NamedMultiMesh& mesh,
71 const OutputOptions&);
72
83void output_hdf5(const Mesh& mesh, const std::filesystem::path& file);
84
85}
86} // namespace wmtk::components
std::pair< std::shared_ptr< Mesh >, std::shared_ptr< Mesh > > multimesh(const MultiMeshType &type, Mesh &parent, std::shared_ptr< Mesh > child, const attribute::MeshAttributeHandle parent_position_handle, const std::string &tag_name, const int64_t tag_value, const int64_t primitive)
Definition multimesh.cpp:15
void output_hdf5(const Mesh &mesh, const std::filesystem::path &file)
Write the mesh to file.
Definition output.cpp:46
void output(const Mesh &mesh, const std::filesystem::path &file, const std::string &position_attr_name)
Write the mesh to file.
Definition output.cpp:16