From d60eb7127a10bff7ec51d2b4beb9c5bb8ef956ec Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 11 Jan 2007 11:48:33 +0000 Subject: [PATCH] currMetric inizialied to heap.front() (it was heap.back()- wrong) --- vcg/complex/local_optimization.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/local_optimization.h b/vcg/complex/local_optimization.h index 54831b6b..e91eb2e8 100644 --- a/vcg/complex/local_optimization.h +++ b/vcg/complex/local_optimization.h @@ -22,6 +22,9 @@ ****************************************************************************/ /**************************************************************************** $Log: not supported by cvs2svn $ + Revision 1.18 2006/12/11 14:09:44 ganovelli + added missing initialization of currMetric + Revision 1.17 2006/06/09 07:28:43 m_di_benedetto Corrected ClearHeap(): iterator "hi" not decrementable if it was the first of the container. @@ -319,7 +322,7 @@ void ClearHeap() m.InitVertexIMark(); LocalModificationType::Init(m,h); std::make_heap(h.begin(),h.end()); - if(!h.empty()) currMetric=h.back().pri; + if(!h.empty()) currMetric=h.front().pri; }