libigl v2.5.0
Loading...
Searching...
No Matches
readMESH.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_READMESH_H
9#define IGL_READMESH_H
10#include "igl_inline.h"
11
12#include <Eigen/Core>
13#include <string>
14#include <vector>
15#include <cstdio>
16
17namespace igl
18{
30 template <typename DerivedV, typename DerivedF, typename DerivedT>
32 const std::string mesh_file_name,
33 Eigen::PlainObjectBase<DerivedV>& V,
34 Eigen::PlainObjectBase<DerivedT>& T,
35 Eigen::PlainObjectBase<DerivedF>& F);
37 template <typename Scalar, typename Index>
39 const std::string mesh_file_name,
40 std::vector<std::vector<Scalar > > & V,
41 std::vector<std::vector<Index > > & T,
42 std::vector<std::vector<Index > > & F);
45 template <typename DerivedV, typename DerivedF, typename DerivedT>
47 FILE * mesh_file,
48 Eigen::PlainObjectBase<DerivedV>& V,
49 Eigen::PlainObjectBase<DerivedT>& T,
50 Eigen::PlainObjectBase<DerivedF>& F);
52 template <typename Scalar, typename Index>
54 FILE * mesh_file,
55 std::vector<std::vector<Scalar > > & V,
56 std::vector<std::vector<Index > > & T,
57 std::vector<std::vector<Index > > & F);
58}
59
60#ifndef IGL_STATIC_LIBRARY
61# include "readMESH.cpp"
62#endif
63
64#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool readMESH(const std::string mesh_file_name, Eigen::PlainObjectBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedT > &T, Eigen::PlainObjectBase< DerivedF > &F)
Load a tetrahedral volume mesh from a .mesh file.