From 6983d4f6e98ee841c325eace238ad2715243dec2 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 25 Feb 2012 14:40:23 +0000 Subject: [PATCH] Added a few comments... --- vcg/complex/algorithms/edge_collapse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/edge_collapse.h b/vcg/complex/algorithms/edge_collapse.h index afd6478b..3dd8ae0a 100644 --- a/vcg/complex/algorithms/edge_collapse.h +++ b/vcg/complex/algorithms/edge_collapse.h @@ -40,7 +40,7 @@ public: VERTEX_TYPE *&V(int i) { return v[i]; } VERTEX_TYPE *cV(int i) const { return v[i]; } private: - VERTEX_TYPE *v[2]; + VERTEX_TYPE *v[2]; // remember that v[0] will be deleted and v[1] will survive (eventually with a new position) }; @@ -229,6 +229,9 @@ public: return true; } + // Main function; the one that actually make the collapse + // remember that v[0] will be deleted and v[1] will survive (eventually with a new position) + // hint to do a 'collapse onto a vertex simply pass p as the position of the surviving vertex static int Do(TriMeshType &m, VertexPair & c, const Point3 &p) { EdgeSet es;