PolyFEM
Loading...
Searching...
No Matches
MshReader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Dense>
4#include <string>
5#include <vector>
6
7namespace polyfem::io
8{
10 {
11 public:
12 static bool load(
13 const std::string &path,
14 Eigen::MatrixXd &vertices,
15 Eigen::MatrixXi &cells,
16 std::vector<std::vector<int>> &elements,
17 std::vector<std::vector<double>> &weights,
18 std::vector<int> &body_ids);
19
20 static bool load(
21 const std::string &path,
22 Eigen::MatrixXd &vertices,
23 Eigen::MatrixXi &cells,
24 std::vector<std::vector<int>> &elements,
25 std::vector<std::vector<double>> &weights,
26 std::vector<int> &body_ids,
27 std::vector<std::string> &node_data_name,
28 std::vector<std::vector<double>> &node_data);
29 };
30} // namespace polyfem::io
static bool load(const std::string &path, Eigen::MatrixXd &vertices, Eigen::MatrixXi &cells, std::vector< std::vector< int > > &elements, std::vector< std::vector< double > > &weights, std::vector< int > &body_ids)
Definition MshReader.cpp:29