From 03b335b1548fc34ec0d150c654154113df53e855 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 3 Apr 2004 14:10:31 +0000 Subject: [PATCH] minor changes --- vcg/complex/trimesh/geodesic.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/vcg/complex/trimesh/geodesic.h b/vcg/complex/trimesh/geodesic.h index f89db8b9..d543d6cf 100644 --- a/vcg/complex/trimesh/geodesic.h +++ b/vcg/complex/trimesh/geodesic.h @@ -24,6 +24,8 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2004/03/29 14:26:57 cignoni +First working version! ****************************************************************************/ @@ -36,9 +38,10 @@ template class VQualityHeap { public: + typedef typename MESH::VertexPointer VertexPointer; float q; - MESH::vertex_pointer p; - inline VQualityHeap( MESH::vertex_pointer np ) + VertexPointer p; + inline VQualityHeap( VertexPointer np ) { q = np->Q(); p = np; @@ -86,7 +89,7 @@ void ComputeGeodesicQuality(MESH &m, bool per_face ) // R1 { for(int k=0;k<2;++k) { - MESH::vertex_pointer pv = (*f).V((j+k)%3); + MESH::VertexPointer pv = (*f).V((j+k)%3); if( pv->Q()==-1 ) { pv->Q() = 0; @@ -98,7 +101,7 @@ void ComputeGeodesicQuality(MESH &m, bool per_face ) // R1 const MESH::scalar_type loc_eps=m.bbox.Diag()/MESH::scalar_type(100000); while( heap.size()!=0 ) // Shortest path tree { - MESH::vertex_pointer pv; + MESH::VertexPointer pv; pop_heap(heap.begin(),heap.end()); if( ! heap.back().is_valid() ) { @@ -112,7 +115,7 @@ void ComputeGeodesicQuality(MESH &m, bool per_face ) // R1 { for(int k=0;k<2;++k) { - MESH::vertex_pointer pw; + MESH::VertexPointer pw; float d; if(k==0) pw = x.f->V1(x.z); else pw = x.f->V2(x.z); @@ -139,7 +142,5 @@ void ComputeGeodesicQuality(MESH &m, bool per_face ) // R1 } - - - +} // end namespace #endif \ No newline at end of file