libigl v2.5.0
Loading...
Searching...
No Matches
writeMSH.h
Go to the documentation of this file.
1// high level interface for MshSaver
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 distributed
7// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_WRITE_MSH_H
9#define IGL_WRITE_MSH_H
10#include "igl_inline.h"
11
12#include <Eigen/Core>
13#include <string>
14#include <vector>
15
16namespace igl
17{
38 template <
39 typename DerivedX,
40 typename DerivedTri,
41 typename DerivedTet,
42 typename DerivedTriTag,
43 typename DerivedTetTag,
44 typename MatrixXF,
45 typename MatrixTriF,
46 typename MatrixTetF
47 >
49 const std::string &msh,
50 const Eigen::MatrixBase<DerivedX> &X,
51 const Eigen::MatrixBase<DerivedTri> &Tri,
52 const Eigen::MatrixBase<DerivedTet> &Tet,
53 const Eigen::MatrixBase<DerivedTriTag> &TriTag,
54 const Eigen::MatrixBase<DerivedTetTag> &TetTag,
55 const std::vector<std::string> &XFields,
56 const std::vector<MatrixXF> &XF,
57 const std::vector<std::string> &EFields,
58 const std::vector<MatrixTriF> &TriF,
59 const std::vector<MatrixTetF> &TetF);
60}
61
62#ifndef IGL_STATIC_LIBRARY
63# include "writeMSH.cpp"
64#endif
65
66#endif //IGL_WRITE_MSH_H
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
bool writeMSH(const std::string &msh, const Eigen::MatrixBase< DerivedX > &X, const Eigen::MatrixBase< DerivedTri > &Tri, const Eigen::MatrixBase< DerivedTet > &Tet, const Eigen::MatrixBase< DerivedTriTag > &TriTag, const Eigen::MatrixBase< DerivedTetTag > &TetTag, const std::vector< std::string > &XFields, const std::vector< MatrixXF > &XF, const std::vector< std::string > &EFields, const std::vector< MatrixTriF > &TriF, const std::vector< MatrixTetF > &TetF)
write triangle surface mesh and tetrahedral volume mesh to .msh file