libigl v2.5.0
|
#include "igl_inline.h"
#include <vector>
#include <string>
#include <Eigen/Dense>
#include "readTGF.cpp"
Go to the source code of this file.
Namespaces | |
namespace | igl |
Functions | |
bool | igl::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. | |
bool | igl::readTGF (const std::string tgf_filename, Eigen::MatrixXd &C, Eigen::MatrixXi &E, Eigen::VectorXi &P, Eigen::MatrixXi &BE, Eigen::MatrixXi &CE, Eigen::MatrixXi &PE) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
bool | igl::readTGF (const std::string tgf_filename, Eigen::MatrixXd &C, Eigen::MatrixXi &E) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
A .tgf file contains a graph of describing a set of control handles/structures: point controls, bones of a skeleton and cages made of "cage edges".
The first part of the file consists of lines regarding each vertex of the graph. Each line reads:
[index] [x] [y] [z] [undocument optional data]
Indices begin with 1 and should proceed in order. Then there should be a line with a sole:
#
The next section concerns the edges of the graph. Each line corresponds to an edge:
[source index] [dest index] [is bone] [is pseudo-edge] [is cage edge] [undocument other data]
Bone edges trump pseudo and cage edges.