From 5670460684d95ac0e6210b45fb2572c3ce309392 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 29 Nov 2006 15:58:50 +0000 Subject: [PATCH] Added check with the new end and avoided dangerous updating of already updated pointers --- vcg/complex/trimesh/allocate.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 946a041e..906ec797 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.34 2006/11/28 22:34:28 cignoni +Added default constructor with null initialization to adjacency members. +AddFaces and AddVertices NEED to know if the topology is correctly computed to update it. + Revision 1.33 2006/11/13 13:12:27 ponchio Removed a couple of useless assert. @@ -171,6 +175,7 @@ namespace vcg { void Clear(){newBase=oldBase=newEnd=oldEnd=0;preventUpdateFlag=false;}; void Update(SimplexPointerType &vp) { + if(vp>=newBase && vp=oldBase); assert(vp