From 8b88b2520e442e7730aa3e305bf8295a7886f4f2 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 3 Jan 2005 11:22:31 +0000 Subject: [PATCH] Added better documentation (with an example and the V0 V1 V2 access members --- vcg/simplex/face/pos.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index a47bd152..45412002 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.14 2004/10/28 00:50:48 cignoni +Better Doxygen documentation + Revision 1.13 2004/10/18 17:14:42 ganovelli error FFP -> FFp @@ -337,6 +340,14 @@ public: /** Class VFIterator. This class is used as an iterator over the VF adjacency. + It allow to easily traverse all the faces around a given vertex; + typical example: + + vcg::face::VFIterator vfi(v[1]); + while (!vfi.End()){ + vfi.V1()->ClearV(); + ++vfi; + } */ template @@ -367,8 +378,13 @@ public: VFIterator(VertexType * _v){f = _v->VFp(); z = _v->VFi();} VFIFaceType *& F() { return f;} - int & I() { return z;} + int & I() { return z;} + inline VertexType *V() const { return f->V(z);} + inline VertexType * const & V0() const { return f->V0(z);} + inline VertexType * const & V1() const { return f->V1(z);} + inline VertexType * const & V2() const { return f->V2(z);} + bool End() const {return f==0;} VFIFaceType *operator++() { FaceType* t = f;