libigl v2.5.0
Loading...
Searching...
No Matches
readMSH.h
Go to the documentation of this file.
1// high level interface for MshLoader.h/.cpp
2
3// Copyright (C) 2020 Vladimir Fonov <vladimir.fonov@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla
6// Public License v. 2.0. If a copy of the MPL was not distribute
7// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_READ_MSH_H
9#define IGL_READ_MSH_H
10#include "igl_inline.h"
11
12#include <Eigen/Core>
13#include <string>
14#include <vector>
15
16
17namespace igl
18{
40 template <
41 typename DerivedX,
42 typename DerivedTri,
43 typename DerivedTet,
44 typename DerivedTriTag,
45 typename DerivedTetTag,
46 typename MatrixXF,
47 typename MatrixTriF,
48 typename MatrixTetF
49 >
51 const std::string &msh,
52 Eigen::PlainObjectBase<DerivedX> &X,
53 Eigen::PlainObjectBase<DerivedTri> &Tri,
54 Eigen::PlainObjectBase<DerivedTet> &Tet,
55 Eigen::PlainObjectBase<DerivedTriTag> &TriTag,
56 Eigen::PlainObjectBase<DerivedTetTag> &TetTag,
57 std::vector<std::string> &XFields,
58 std::vector<MatrixXF> &XF,
59 std::vector<std::string> &EFields,
60 std::vector<MatrixTriF> &TriF,
61 std::vector<MatrixTetF> &TetF);
63 template <int EigenMatrixOptions>
65 const std::string &msh,
66 Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &X,
67 Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &Tri,
68 Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &Tet,
69 Eigen::VectorXi &TriTag,
70 Eigen::VectorXi &TetTag);
72 template <int EigenMatrixOptions>
74 const std::string &msh,
75 Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &X,
76 Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &Tri,
77 Eigen::VectorXi &TriTag);
79 template <int EigenMatrixOptions>
81 const std::string &msh,
82 Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &X,
83 Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic,EigenMatrixOptions> &Tri);
84
85}
86
87
88#ifndef IGL_STATIC_LIBRARY
89# include "readMSH.cpp"
90#endif
91
92#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
bool readMSH(const std::string &msh, Eigen::PlainObjectBase< DerivedX > &X, Eigen::PlainObjectBase< DerivedTri > &Tri, Eigen::PlainObjectBase< DerivedTet > &Tet, Eigen::PlainObjectBase< DerivedTriTag > &TriTag, Eigen::PlainObjectBase< DerivedTetTag > &TetTag, std::vector< std::string > &XFields, std::vector< MatrixXF > &XF, std::vector< std::string > &EFields, std::vector< MatrixTriF > &TriF, std::vector< MatrixTetF > &TetF)
read triangle surface mesh and tetrahedral volume mesh from .msh file