1414#include < spdlog/stopwatch.h>
1515
1616#include " Face.h"
17- #include " UVCoord .h"
18- #include " Vertex .h"
17+ #include " Point2F .h"
18+ #include " Point3F .h"
1919#include " unwrap.h"
2020
2121int main (int argc, char ** argv)
@@ -84,7 +84,7 @@ int main(int argc, char** argv)
8484 spdlog::info (" Processing (unnamed) mesh" , mesh->mName .data );
8585 }
8686
87- std::vector<Vertex > vertices;
87+ std::vector<Point3F > vertices;
8888 vertices.reserve (mesh->mNumVertices );
8989 for (size_t j = 0 ; j < mesh->mNumVertices ; j++)
9090 {
@@ -100,7 +100,7 @@ int main(int argc, char** argv)
100100 indices.emplace_back (face.mIndices [0 ], face.mIndices [1 ], face.mIndices [2 ]);
101101 }
102102
103- std::vector<UVCoord > uv_coords (mesh->mNumVertices , { 0.0 , 0.0 });
103+ std::vector<Point2F > uv_coords (mesh->mNumVertices , { 0.0 , 0.0 });
104104 uint32_t texture_width, texture_height;
105105
106106 spdlog::stopwatch timer;
@@ -132,10 +132,10 @@ int main(int argc, char** argv)
132132 export_mesh->mTextureCoords [j] = new aiVector3D[export_mesh->mNumVertices ];
133133 for (size_t k = 0 ; k < export_mesh->mNumVertices ; k++)
134134 {
135- const UVCoord & uv = uv_coords[k];
135+ const Point2F & uv = uv_coords[k];
136136 aiVector3D& export_uv = export_mesh->mTextureCoords [j][k];
137- export_uv.x = uv.u ;
138- export_uv.y = uv.v ;
137+ export_uv.x = uv.x ;
138+ export_uv.y = uv.y ;
139139 }
140140 }
141141 else
0 commit comments