PolyFEM
Loading...
Searching...
No Matches
MshWriter.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6
7#include <Eigen/Core>
8
9namespace polyfem::io
10{
12 {
13 public:
14 MshWriter() = delete;
15
19 static void write(
20 const std::string &path,
21 const mesh::Mesh &mesh,
22 const bool binary);
23
27 static void write(
28 const std::string &path,
29 const Eigen::MatrixXd &points,
30 const Eigen::MatrixXi &cells,
31 const std::vector<int> &body_ids,
32 const bool is_volume,
33 const bool binary = false);
34
38 static void write(
39 const std::string &path,
40 const Eigen::MatrixXd &points,
41 const std::vector<std::vector<int>> &cells,
42 const std::vector<int> &body_ids,
43 const bool is_volume,
44 const bool binary = false);
45 };
46} // namespace polyfem::io
static void write(const std::string &path, const mesh::Mesh &mesh, const bool binary)
saves the mesh
Definition MshWriter.cpp:7
Abstract mesh class to capture 2d/3d conforming and non-conforming meshes.
Definition Mesh.hpp:39