From 16b0bd16c63ec9d8ce37c3d5e87b916ab51bf44f Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 1 Apr 2005 13:04:55 +0000 Subject: [PATCH] Minor changes --- vcg/complex/trimesh/update/flag.h | 10 +++++++--- vcg/complex/trimesh/update/normal.h | 14 +++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/vcg/complex/trimesh/update/flag.h b/vcg/complex/trimesh/update/flag.h index d29f6341..649c4c01 100644 --- a/vcg/complex/trimesh/update/flag.h +++ b/vcg/complex/trimesh/update/flag.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2004/09/14 19:49:43 ganovelli +first compilation version + Revision 1.6 2004/07/15 00:13:39 cignoni Better doxigen documentation @@ -151,9 +154,10 @@ void FaceBorderFromNone(MeshType &m) typename UpdateMeshType::FaceIterator pf; typename std::vector::iterator p; - if( fn == 0 ) return; + if( m.fn == 0 ) + return; - e.resize(fn*3); // Alloco il vettore ausiliario + e.resize(m.fn*3); // Alloco il vettore ausiliario p = e.begin(); for(pf=m.face.begin();pf!=m.face.end();++pf) // Lo riempio con i dati delle facce if( ! (*pf).IsDeleted() ) @@ -193,7 +197,7 @@ void VertexBorderFromFace(MeshType &m) typename MeshType::VertexIterator v; typename MeshType::FaceIterator f; - for(v=vert.begin();v!=vert.end();++v) + for(v=m.vert.begin();v!=m.vert.end();++v) (*v).ClearB(); for(f=m.face.begin();f!=m.face.end();++f) diff --git a/vcg/complex/trimesh/update/normal.h b/vcg/complex/trimesh/update/normal.h index d8c35c24..5e4ea3ec 100644 --- a/vcg/complex/trimesh/update/normal.h +++ b/vcg/complex/trimesh/update/normal.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.4 2004/09/09 14:35:14 ponchio +Typename changes for linux + Revision 1.3 2004/08/31 15:18:54 pietroni minor changes to comply gcc compiler (typename's ) @@ -178,17 +181,6 @@ static void PerVertexNormalized(ComputeMeshType &m) (*vi).N().Normalize(); } - - - -void ComputeE() -{ - FaceIterator f; - - for(f = m.face.begin(); f!=m.face.end(); ++f) - (*f).ComputeE(); -} - }; // end class } // End namespace