From c7196917fd3b88db27b183a8b2e74a5706753c0e Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 3 May 2006 21:38:57 +0000 Subject: [PATCH] Added possibility of not updating the topology during a SwapEdge --- vcg/simplex/face/topology.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/face/topology.h b/vcg/simplex/face/topology.h index aaa6fb51..7f6b7366 100644 --- a/vcg/simplex/face/topology.h +++ b/vcg/simplex/face/topology.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.26 2005/12/19 13:47:26 corsini +Rewrite SwapEdge to fix problems with borders + Revision 1.25 2005/12/16 11:01:26 corsini Remove trivial warnings @@ -280,12 +283,15 @@ bool CheckOrientation(FaceType &f, int z) * @param z Index of the edge */ template +void SwapEdge(FaceType &f, const int z) { SwapEdge(f,z); } + +template void SwapEdge(FaceType &f, const int z) { // swap V0(z) with V1(z) swap(f.V0(z), f.V1(z)); - if(f.HasFFAdjacency()) + if(f.HasFFAdjacency() && UpdateTopology) { // store information to preserve topology int z1 = (z+1)%3;