master
Jeremy Hu 2018-12-29 09:32:53 +09:30
parent 4d1be408a9
commit 3f3134cc0e
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ void uvUnwrap(const Outcome &outcome, std::vector<std::vector<QVector2D>> &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<QUuid, int> partIdToPartitionMap;
int partitions = 0;

View File

@ -28,7 +28,7 @@ struct FaceTextureCoords
struct Mesh
{
std::vector<Vertex> verticies;
std::vector<Vertex> vertices;
std::vector<Face> faces;
std::vector<int> facePartitions;
};

View File

@ -402,7 +402,7 @@ void UvUnwrapper::unwrapSingleIsland(const std::vector<size_t> &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];