From 98eba3ef33abe7b4d0e39b3e1809082569a37aca Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Mon, 22 Feb 2010 01:03:23 +0000 Subject: [PATCH] corrected minor compiling issues --- vcg/simplex/face/topology.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/vcg/simplex/face/topology.h b/vcg/simplex/face/topology.h index 071264d9..d1275124 100644 --- a/vcg/simplex/face/topology.h +++ b/vcg/simplex/face/topology.h @@ -157,10 +157,11 @@ bool FFCorrectness(FaceType & f, const int e) template void FFDetachManifold(FaceType & f, const int e) { - assert(FFCorrectness(f,e)); + assert(FFCorrectness(f,e)); assert(!IsBorder(f,e)); // Never try to detach a border edge! FaceType *ffp = f.FFp(e); - int ffi=f.FFp(e); + //int ffi=f.FFp(e); + int ffi=f.FFi(e); f.FFp(e)=&f; f.FFi(e)=e; @@ -172,8 +173,8 @@ void FFDetachManifold(FaceType & f, const int e) ffp->SetB(ffi); ffp->ClearF(ffi); - assert(FFCorrectness(f,e)); - assert(FFCorrectness(ffp,ffi)); + assert(FFCorrectness(f,e)); + assert(FFCorrectness(*ffp,ffi)); } /** This function detach the face from the adjacent face via the edge e. @@ -186,7 +187,7 @@ void FFDetachManifold(FaceType & f, const int e) template void FFDetach(FaceType & f, const int e) { - assert(FFCorrectness(f,e)); + assert(FFCorrectness(f,e)); assert(!IsBorder(f,e)); // Never try to detach a border edge! int complexity; assert(complexity=ComplexSize(f,e)); @@ -224,8 +225,8 @@ void FFDetach(FaceType & f, const int e) f.FFi(e) = e; assert(ComplexSize(f,e)==1); - assert(FFCorrectness(*LastFace.f,LastFace.z)); - assert(FFCorrectness(f,e)); + assert(FFCorrectness(*LastFace.f,LastFace.z)); + assert(FFCorrectness(f,e)); }