libigl v2.5.0
Loading...
Searching...
No Matches
readTGF.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_READTGF_H
9#define IGL_READTGF_H
10#include "igl_inline.h"
11
12#include <vector>
13#include <string>
14#ifndef IGL_NO_EIGEN
15#include <Eigen/Dense>
16#endif
39
40namespace igl
41{
56 const std::string tgf_filename,
57 std::vector<std::vector<double> > & C,
58 std::vector<std::vector<int> > & E,
59 std::vector<int> & P,
60 std::vector<std::vector<int> > & BE,
61 std::vector<std::vector<int> > & CE,
62 std::vector<std::vector<int> > & PE);
65 const std::string tgf_filename,
66 Eigen::MatrixXd & C,
67 Eigen::MatrixXi & E,
68 Eigen::VectorXi & P,
69 Eigen::MatrixXi & BE,
70 Eigen::MatrixXi & CE,
71 Eigen::MatrixXi & PE);
74 const std::string tgf_filename,
75 Eigen::MatrixXd & C,
76 Eigen::MatrixXi & E);
77}
78
79#ifndef IGL_STATIC_LIBRARY
80# include "readTGF.cpp"
81#endif
82
83#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool readTGF(const std::string tgf_filename, std::vector< std::vector< double > > &C, std::vector< std::vector< int > > &E, std::vector< int > &P, std::vector< std::vector< int > > &BE, std::vector< std::vector< int > > &CE, std::vector< std::vector< int > > &PE)
Read a graph from a .tgf file.