41 template <
typename Scalar,
typename Index>
43 const std::string obj_file_name,
44 std::vector<std::vector<Scalar > > & V,
45 std::vector<std::vector<Scalar > > & TC,
46 std::vector<std::vector<Scalar > > & N,
47 std::vector<std::vector<Index > > & F,
48 std::vector<std::vector<Index > > & FTC,
49 std::vector<std::vector<Index > > & FN,
50 std::vector<std::tuple<std::string, Index, Index >> &FM
53 template <
typename Scalar,
typename Index>
55 const std::string obj_file_name,
56 std::vector<std::vector<Scalar > > & V,
57 std::vector<std::vector<Scalar > > & TC,
58 std::vector<std::vector<Scalar > > & N,
59 std::vector<std::vector<Index > > & F,
60 std::vector<std::vector<Index > > & FTC,
61 std::vector<std::vector<Index > > & FN);
64 template <
typename Scalar,
typename Index>
67 std::vector<std::vector<Scalar > > & V,
68 std::vector<std::vector<Scalar > > & TC,
69 std::vector<std::vector<Scalar > > & N,
70 std::vector<std::vector<Index > > & F,
71 std::vector<std::vector<Index > > & FTC,
72 std::vector<std::vector<Index > > & FN,
73 std::vector<std::tuple<std::string, Index, Index >> &FM);
75 template <
typename Scalar,
typename Index>
77 const std::string obj_file_name,
78 std::vector<std::vector<Scalar > > & V,
79 std::vector<std::vector<Index > > & F);
92 const std::string str,
93 Eigen::PlainObjectBase<DerivedV>& V,
94 Eigen::PlainObjectBase<DerivedTC>& TC,
95 Eigen::PlainObjectBase<DerivedCN>& CN,
96 Eigen::PlainObjectBase<DerivedF>& F,
97 Eigen::PlainObjectBase<DerivedFTC>& FTC,
98 Eigen::PlainObjectBase<DerivedFN>& FN);
100 template <
typename DerivedV,
typename DerivedF>
102 const std::string str,
103 Eigen::PlainObjectBase<DerivedV>& V,
104 Eigen::PlainObjectBase<DerivedF>& F);
111 template <
typename DerivedV,
typename DerivedI,
typename DerivedC>
113 const std::string str,
114 Eigen::PlainObjectBase<DerivedV>& V,
115 Eigen::PlainObjectBase<DerivedI>& I,
116 Eigen::PlainObjectBase<DerivedC>& C);
120#ifndef IGL_STATIC_LIBRARY
121# include "readOBJ.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
bool readOBJ(const std::string obj_file_name, std::vector< std::vector< Scalar > > &V, std::vector< std::vector< Scalar > > &TC, std::vector< std::vector< Scalar > > &N, std::vector< std::vector< Index > > &F, std::vector< std::vector< Index > > &FTC, std::vector< std::vector< Index > > &FN, std::vector< std::tuple< std::string, Index, Index > > &FM)
Read a mesh from an ascii obj file, filling in vertex positions, normals and texture coordinates.