From 740b84c8c62a3235d3f4e9208f929d2ee948f5d7 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 16 May 2006 21:36:54 +0000 Subject: [PATCH] Removed unused box function and rewrote initial comment. --- vcg/complex/trimesh/update/edges.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/vcg/complex/trimesh/update/edges.h b/vcg/complex/trimesh/update/edges.h index 1c65af02..ab335bce 100644 --- a/vcg/complex/trimesh/update/edges.h +++ b/vcg/complex/trimesh/update/edges.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.3 2006/05/15 13:12:36 pietroni +Updating of edge values id divided into 2 functions ( the first one update only a face...) added also resetting of edges flags.. (see first line of Set function) + Revision 1.2 2004/05/12 18:52:35 ganovelli removed call to ComputeRT and put its body here @@ -42,8 +45,7 @@ namespace tri { /** \addtogroup trimesh */ /*@{*/ - /// Management, updating and computation of per-vertex and per-face normals. - /// This class is used to compute or update the normals that can be stored in the vertex or face component of a mesh. + /// This class is used to compute or update the precomputed data used to efficiently compute point-face distances.. template class UpdateEdges { @@ -58,16 +60,6 @@ namespace tri { typedef typename MeshType::FaceIterator FaceIterator; typedef typename MeshType::FaceType::ScalarType ScalarType; - /// Calculates the vertex normal (if stored in the current face type) - static void Box(ComputeMeshType &m) - { - m.bbox.SetNull(); - VertexIterator vi; - for(vi=m.vert.begin();vi!=m.vert.end();++vi) - if( !(*vi).IsD() ) m.bbox.Add((*vi).P()); - - } - static void Set(FaceType &f) { f.Flags() = f.Flags() & (~(FaceType::NORMX|FaceType::NORMY|FaceType::NORMZ));