From a66c9f5897f224c5e55c6e12ed109d44ce38acc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 6 Jan 2020 19:48:27 +0100 Subject: [PATCH] MeshTools: a better name for a variable. This is what the buildAdjacency() function uses, so why be different. --- src/Magnum/MeshTools/Tipsify.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/MeshTools/Tipsify.cpp b/src/Magnum/MeshTools/Tipsify.cpp index 84086bbe3..43f7588cb 100644 --- a/src/Magnum/MeshTools/Tipsify.cpp +++ b/src/Magnum/MeshTools/Tipsify.cpp @@ -33,8 +33,8 @@ namespace Magnum { namespace MeshTools { void tipsify(std::vector& indices, const UnsignedInt vertexCount, const std::size_t cacheSize) { /* Neighboring triangles for each vertex, per-vertex live triangle count */ - std::vector liveTriangleCount, neighborPosition, neighbors; - Implementation::buildAdjacency(indices, vertexCount, liveTriangleCount, neighborPosition, neighbors); + std::vector liveTriangleCount, neighborOffset, neighbors; + Implementation::buildAdjacency(indices, vertexCount, liveTriangleCount, neighborOffset, neighbors); /* Global time, per-vertex caching timestamps, per-triangle emmited flag */ UnsignedInt time = cacheSize+1; @@ -57,7 +57,7 @@ void tipsify(std::vector& indices, const UnsignedInt vertexCount, c std::vector candidates; /* For all neighbors of fanning vertex */ - for(UnsignedInt ti = neighborPosition[fanningVertex], t = neighbors[ti]; ti != neighborPosition[fanningVertex+1]; t = neighbors[++ti]) { + for(UnsignedInt ti = neighborOffset[fanningVertex], t = neighbors[ti]; ti != neighborOffset[fanningVertex+1]; t = neighbors[++ti]) { /* Continue if already emitted */ if(emitted[t]) continue; emitted[t] = true;