VCG Library
1  >{};
181 class MyFace: public vcg::FaceSimp2<MyVertex,MyEdge,MyFace, vcg::face::VertexRef,vcg::face::VFAd>{};
182
183 void OneRingNeighborhoodVF( MyVertex * v)
184 {
185  vcg::face::VFIterator<MyFace> vfi(v); //initialize the iterator tohe first face
186  for(;!vfi.End();++vfi)
187  {
188  MyFace* f = vfi.F();
189  // ...do something with face f
190  }
191 }
192 \endcode
193 Stars and Rings
194 ---------------
195 We have a few handy functions to recover the set of faces/vertices incident on vertex:
196
198 - \ref vcg::face::VVStarVF
199 - \ref vcg::face::VFStarVF
201 - \ref vcg::face::EFStarFF
202
204 ------------------------------------------
205
206 Here we make a series of simple statements just to avoid confusion and try to help up choosing the adjacencies the best fit your needs.
207
208 If the mesh is manifold, the one-ring neighborhood of a vertex computed by using Pos ( needs FF adjacency) is the same as the one computed by using VFIterator (needs VF adjacency). The order in which the faces are visited can be CW or CCW if using Pos, unspecified by using VIterator
209 If the mesh is non-manifold, Pos may not find all the faces of the one-ring neighborhood of he vertex, VFIterator always does
210