Skip to content

Commit

Permalink
fix missing vertex texcoord when importing from polymesh matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Nov 18, 2024
1 parent 8fd4c52 commit ad55b47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/utilities/eigen_mesh_conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class PVertex :
vertex::Normal3f,
vertex::Qualityf,
vertex::Color4b,
vertex::BitFlags>
vertex::BitFlags,
vertex::TexCoord2f>
{
};
class PEdge : public Edge<PUsedTypes, edge::VertexRef, edge::BitFlags>
Expand Down Expand Up @@ -330,6 +331,7 @@ CMeshO meshlab::polyMeshFromMatrices(
}
m.vert.EnableTexCoord();
}

PolyMesh::VertexIterator vi =
vcg::tri::Allocator<PolyMesh>::AddVertices(pm, vertices.rows());
for (unsigned int i = 0; i < vertices.rows(); ++i, ++vi) {
Expand Down

0 comments on commit ad55b47

Please sign in to comment.