From a4ecdb2635074933a5420cc5769b67f1a7c6186f Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 25 Sep 2006 09:57:49 +0000 Subject: [PATCH] Better comment on usage of VF iterators --- vcg/simplex/face/pos.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index b58c5701..8f7a2d88 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2005/12/15 11:57:48 corsini +Replace Pos with PosType + Revision 1.19 2005/12/15 11:19:00 corsini Fix operators @@ -373,9 +376,15 @@ public: It allow to easily traverse all the faces around a given vertex; typical example: - vcg::face::VFIterator vfi(v[1]); + vcg::face::VFIterator vfi(f,v[1]); + for (;!vfi.End();++vfi) + vfi.F()->ClearV(); + + // Alternative + + vcg::face::VFIterator vfi(f, 1); while (!vfi.End()){ - vfi.V1()->ClearV(); + vfi.F()->ClearV(); ++vfi; } */