From 3f3134cc0ea8660d5a10954f5cd464a16bfb6758 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sat, 29 Dec 2018 09:32:53 +0930 Subject: [PATCH] Fix typo --- src/uvunwrap.cpp | 2 +- thirdparty/simpleuv/simpleuv/meshdatatype.h | 2 +- thirdparty/simpleuv/simpleuv/uvunwrapper.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uvunwrap.cpp b/src/uvunwrap.cpp index a32577fa..9a277ddd 100644 --- a/src/uvunwrap.cpp +++ b/src/uvunwrap.cpp @@ -20,7 +20,7 @@ void uvUnwrap(const Outcome &outcome, std::vector> &trian v.xyz[0] = vertex.x(); v.xyz[1] = vertex.y(); v.xyz[2] = vertex.z(); - inputMesh.verticies.push_back(v); + inputMesh.vertices.push_back(v); } std::map partIdToPartitionMap; int partitions = 0; diff --git a/thirdparty/simpleuv/simpleuv/meshdatatype.h b/thirdparty/simpleuv/simpleuv/meshdatatype.h index 02886213..594fc3ed 100644 --- a/thirdparty/simpleuv/simpleuv/meshdatatype.h +++ b/thirdparty/simpleuv/simpleuv/meshdatatype.h @@ -28,7 +28,7 @@ struct FaceTextureCoords struct Mesh { - std::vector verticies; + std::vector vertices; std::vector faces; std::vector facePartitions; }; diff --git a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp index de9f35e6..9606e5a7 100644 --- a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp +++ b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp @@ -402,7 +402,7 @@ void UvUnwrapper::unwrapSingleIsland(const std::vector &group, bool skip for (size_t j = 0; j < 3; j++) { int globalVertexIndex = globalFace.indices[j]; if (globalToLocalVerticesMap.find(globalVertexIndex) == globalToLocalVerticesMap.end()) { - localVertices.push_back(m_mesh.verticies[globalVertexIndex]); + localVertices.push_back(m_mesh.vertices[globalVertexIndex]); globalToLocalVerticesMap[globalVertexIndex] = (int)localVertices.size() - 1; } localFace.indices[j] = globalToLocalVerticesMap[globalVertexIndex];