libigl v2.5.0
Loading...
Searching...
No Matches
readPLY.h
Go to the documentation of this file.
1#ifndef IGL_READPLY_H
2#define IGL_READPLY_H
3#include "igl_inline.h"
4#include <Eigen/Core>
5#include <string>
6#include <vector>
7#include "tinyply.h"
8
9namespace igl
10{
34 template <
35 typename DerivedV,
36 typename DerivedF,
37 typename DerivedE,
38 typename DerivedN,
39 typename DerivedUV,
40 typename DerivedVD,
41 typename DerivedFD,
42 typename DerivedED
43 >
44 bool readPLY(
45 std::istream & ply_stream,
46 Eigen::PlainObjectBase<DerivedV> & V,
47 Eigen::PlainObjectBase<DerivedF> & F,
48 Eigen::PlainObjectBase<DerivedF> & E,
49 Eigen::PlainObjectBase<DerivedN> & N,
50 Eigen::PlainObjectBase<DerivedUV> & UV,
51 Eigen::PlainObjectBase<DerivedVD> & VD,
52 std::vector<std::string> & Vheader,
53 Eigen::PlainObjectBase<DerivedFD> & FD,
54 std::vector<std::string> & Fheader,
55 Eigen::PlainObjectBase<DerivedED> & ED,
56 std::vector<std::string> & Eheader,
57 std::vector<std::string> & comments
58 );
61 template <
62 typename DerivedV,
63 typename DerivedF,
64 typename DerivedE,
65 typename DerivedN,
66 typename DerivedUV,
67 typename DerivedVD,
68 typename DerivedFD,
69 typename DerivedED
70 >
71 bool readPLY(
72 const std::string& ply_file,
73 Eigen::PlainObjectBase<DerivedV> & V,
74 Eigen::PlainObjectBase<DerivedF> & F,
75 Eigen::PlainObjectBase<DerivedE> & E,
76 Eigen::PlainObjectBase<DerivedN> & N,
77 Eigen::PlainObjectBase<DerivedUV> & UV,
78 Eigen::PlainObjectBase<DerivedVD> & VD,
79 std::vector<std::string> & VDheader,
80 Eigen::PlainObjectBase<DerivedFD> & FD,
81 std::vector<std::string> & FDheader,
82 Eigen::PlainObjectBase<DerivedED> & ED,
83 std::vector<std::string> & EDheader,
84 std::vector<std::string> & comments
85 );
87 template <
88 typename DerivedV,
89 typename DerivedF,
90 typename DerivedN,
91 typename DerivedUV,
92 typename DerivedVD
93 >
94 bool readPLY(
95 const std::string & filename,
96 Eigen::PlainObjectBase<DerivedV> & V,
97 Eigen::PlainObjectBase<DerivedF> & F,
98 Eigen::PlainObjectBase<DerivedN> & N,
99 Eigen::PlainObjectBase<DerivedUV> & UV,
100 Eigen::PlainObjectBase<DerivedVD> & VD,
101 std::vector<std::string> & Vheader
102 );
104 template <
105 typename DerivedV,
106 typename DerivedF,
107 typename DerivedE,
108 typename DerivedN,
109 typename DerivedUV
110 >
112 const std::string & filename,
113 Eigen::PlainObjectBase<DerivedV> & V,
114 Eigen::PlainObjectBase<DerivedF> & F,
115 Eigen::PlainObjectBase<DerivedE> & E,
116 Eigen::PlainObjectBase<DerivedN> & N,
117 Eigen::PlainObjectBase<DerivedUV> & UV
118 );
120 template <
121 typename DerivedV,
122 typename DerivedF
123 >
125 const std::string & filename,
126 Eigen::PlainObjectBase<DerivedV> & V,
127 Eigen::PlainObjectBase<DerivedF> & F
128 );
130 template <
131 typename DerivedV,
132 typename DerivedF,
133 typename DerivedE
134 >
136 const std::string & filename,
137 Eigen::PlainObjectBase<DerivedV> & V,
138 Eigen::PlainObjectBase<DerivedF> & F,
139 Eigen::PlainObjectBase<DerivedE> & E
140 );
143 template <
144 typename DerivedV,
145 typename DerivedF
146 >
148 FILE *fp,
149 Eigen::PlainObjectBase<DerivedV> & V,
150 Eigen::PlainObjectBase<DerivedF> & F
151 );
152}
153
154#ifndef IGL_STATIC_LIBRARY
155# include "readPLY.cpp"
156#endif
157#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
bool readPLY(std::istream &ply_stream, Eigen::PlainObjectBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedF > &E, Eigen::PlainObjectBase< DerivedN > &N, Eigen::PlainObjectBase< DerivedUV > &UV, Eigen::PlainObjectBase< DerivedVD > &VD, std::vector< std::string > &Vheader, Eigen::PlainObjectBase< DerivedFD > &FD, std::vector< std::string > &Fheader, Eigen::PlainObjectBase< DerivedED > &ED, std::vector< std::string > &Eheader, std::vector< std::string > &comments)
Read triangular mesh from ply file, filling in vertex positions, normals and texture coordinates,...