From 5b6f8055f219fb70103348370c527320a5aeb990 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 31 May 2011 08:35:50 +0000 Subject: [PATCH] Corrected bug in the computation of VE topology --- vcg/complex/algorithms/update/topology.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vcg/complex/algorithms/update/topology.h b/vcg/complex/algorithms/update/topology.h index 7daca313..4fe9ff16 100644 --- a/vcg/complex/algorithms/update/topology.h +++ b/vcg/complex/algorithms/update/topology.h @@ -503,8 +503,8 @@ static void VertexEdge(MeshType &m) for(vi=m.vert.begin();vi!=m.vert.end();++vi) { - (*vi).Ep() = 0; - (*vi).Ei() = 0; + (*vi).VEp() = 0; + (*vi).VEi() = 0; } for(ei=m.edges.begin();ei!=m.edges.end();++ei) @@ -512,10 +512,10 @@ static void VertexEdge(MeshType &m) { for(int j=0;j<2;++j) { - (*ei).Ev(j) = (*ei).V(j)->Ep(); - (*ei).Zv(j) = (*ei).V(j)->Ei(); - (*ei).V(j)->Ep() = &(*ei); - (*ei).V(j)->Ei() = j; + (*ei).VEp(j) = (*ei).V(j)->VEp(); + (*ei).VEi(j) = (*ei).V(j)->VEi(); + (*ei).V(j)->VEp() = &(*ei); + (*ei).V(j)->VEi() = j; } } }