libigl v2.5.0
Loading...
Searching...
No Matches
writePLY.h
Go to the documentation of this file.
1#ifndef IGL_WRITEPLY_H
2#define IGL_WRITEPLY_H
3#include "igl_inline.h"
4#include "FileEncoding.h"
5
6#include <string>
7#include <iostream>
8#include <vector>
9#include <Eigen/Core>
10
11
12namespace igl
13{
32 template <
33 typename DerivedV,
34 typename DerivedF,
35 typename DerivedE,
36 typename DerivedN,
37 typename DerivedUV,
38 typename DerivedVD,
39 typename DerivedFD,
40 typename DerivedED
41 >
43 std::ostream & ply_stream,
44 const Eigen::MatrixBase<DerivedV> & V,
45 const Eigen::MatrixBase<DerivedF> & F,
46 const Eigen::MatrixBase<DerivedE> & E,
47 const Eigen::MatrixBase<DerivedN> & N,
48 const Eigen::MatrixBase<DerivedUV> & UV,
49 const Eigen::MatrixBase<DerivedVD> & VD,
50 const std::vector<std::string> & VDheader,
51 const Eigen::MatrixBase<DerivedFD> & FD,
52 const std::vector<std::string> & FDheader,
53 const Eigen::MatrixBase<DerivedED> & ED,
54 const std::vector<std::string> & EDheader,
55 const std::vector<std::string> & comments,
56 FileEncoding encoding
57 );
60 template <
61 typename DerivedV,
62 typename DerivedF,
63 typename DerivedE,
64 typename DerivedN,
65 typename DerivedUV,
66 typename DerivedVD,
67 typename DerivedFD,
68 typename DerivedED
69 >
71 const std::string & filename,
72 const Eigen::MatrixBase<DerivedV> & V,
73 const Eigen::MatrixBase<DerivedF> & F,
74 const Eigen::MatrixBase<DerivedE> & E,
75 const Eigen::MatrixBase<DerivedN> & N,
76 const Eigen::MatrixBase<DerivedUV> & UV,
77 const Eigen::MatrixBase<DerivedVD> & VD,
78 const std::vector<std::string> & VDheader,
79 const Eigen::MatrixBase<DerivedFD> & FD,
80 const std::vector<std::string> & FDheader,
81 const Eigen::MatrixBase<DerivedED> & ED,
82 const std::vector<std::string> & EDheader,
83 const std::vector<std::string> & comments,
84 FileEncoding encoding);
86 template <
87 typename DerivedV,
88 typename DerivedF
89 >
91 const std::string & filename,
92 const Eigen::MatrixBase<DerivedV> & V,
93 const Eigen::MatrixBase<DerivedF> & F
94 );
96 template <
97 typename DerivedV,
98 typename DerivedF,
99 typename DerivedE
100 >
102 const std::string & filename,
103 const Eigen::MatrixBase<DerivedV> & V,
104 const Eigen::MatrixBase<DerivedF> & F,
105 const Eigen::MatrixBase<DerivedF> & E
106 );
108 template <
109 typename DerivedV,
110 typename DerivedF,
111 typename DerivedN,
112 typename DerivedUV
113 >
115 const std::string & filename,
116 const Eigen::MatrixBase<DerivedV> & V,
117 const Eigen::MatrixBase<DerivedF> & F,
118 const Eigen::MatrixBase<DerivedN> & N,
119 const Eigen::MatrixBase<DerivedUV> & UV
120 );
122 template <
123 typename DerivedV,
124 typename DerivedF,
125 typename DerivedE,
126 typename DerivedN,
127 typename DerivedUV
128 >
130 const std::string & filename,
131 const Eigen::MatrixBase<DerivedV> & V,
132 const Eigen::MatrixBase<DerivedF> & F,
133 const Eigen::MatrixBase<DerivedE> & E,
134 const Eigen::MatrixBase<DerivedN> & N,
135 const Eigen::MatrixBase<DerivedUV> & UV
136 );
138 template <
139 typename DerivedV,
140 typename DerivedF
141 >
143 const std::string & filename,
144 const Eigen::MatrixBase<DerivedV> & V,
145 const Eigen::MatrixBase<DerivedF> & F,
146 FileEncoding encoding
147 );
149 template <
150 typename DerivedV,
151 typename DerivedF,
152 typename DerivedE
153 >
155 const std::string & filename,
156 const Eigen::MatrixBase<DerivedV> & V,
157 const Eigen::MatrixBase<DerivedF> & F,
158 const Eigen::MatrixBase<DerivedE> & E,
159 FileEncoding encoding
160 );
162 template <
163 typename DerivedV,
164 typename DerivedF,
165 typename DerivedN,
166 typename DerivedUV,
167 typename DerivedVD
168 >
170 const std::string & filename,
171 const Eigen::MatrixBase<DerivedV> & V,
172 const Eigen::MatrixBase<DerivedF> & F,
173 const Eigen::MatrixBase<DerivedN> & N,
174 const Eigen::MatrixBase<DerivedUV> & UV,
175 const Eigen::MatrixBase<DerivedVD> & VD=Eigen::MatrixXd(0,0),
176 const std::vector<std::string> & VDheader={},
177 const std::vector<std::string> & comments={}
178 );
180 template <
181 typename DerivedV,
182 typename DerivedF,
183 typename DerivedE,
184 typename DerivedN,
185 typename DerivedUV,
186 typename DerivedVD
187 >
189 const std::string & filename,
190 const Eigen::MatrixBase<DerivedV> & V,
191 const Eigen::MatrixBase<DerivedF> & F,
192 const Eigen::MatrixBase<DerivedE> & E,
193 const Eigen::MatrixBase<DerivedN> & N,
194 const Eigen::MatrixBase<DerivedUV> & UV,
195 const Eigen::MatrixBase<DerivedVD> & VD=Eigen::MatrixXd(0,0),
196 const std::vector<std::string> & VDheader={},
197 const std::vector<std::string> & comments={}
198 );
199}
200
201
202
203#ifndef IGL_STATIC_LIBRARY
204# include "writePLY.cpp"
205#endif
206#endif
Definition AABB.h:17
FileEncoding
File encoding types for writing files.
Definition FileEncoding.h:14
bool writePLY(std::ostream &ply_stream, const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedE > &E, const Eigen::MatrixBase< DerivedN > &N, const Eigen::MatrixBase< DerivedUV > &UV, const Eigen::MatrixBase< DerivedVD > &VD, const std::vector< std::string > &VDheader, const Eigen::MatrixBase< DerivedFD > &FD, const std::vector< std::string > &FDheader, const Eigen::MatrixBase< DerivedED > &ED, const std::vector< std::string > &EDheader, const std::vector< std::string > &comments, FileEncoding encoding)
write triangular mesh to ply file