#include <pos.h>
Public Types | |
typedef VertexType::CoordType | CoordType |
The vector type. | |
typedef VertexType::ScalarType | ScalarType |
The scalar type. | |
typedef FaceType::VertexType | VertexType |
The vertex type. | |
typedef FaceType | VFIFaceType |
The Base face type. | |
Public Member Functions | |
bool | End () const |
VFIFaceType *& | F () |
int & | I () |
void | operator++ () |
VertexType * | V () const |
VertexType *const & | V0 () const |
VertexType *const & | V1 () const |
VertexType *const & | V2 () const |
VFIterator () | |
Default constructor. | |
VFIterator (FaceType *_f, const int &_z) | |
Constructor which associates the half-edge elementet with a face and its vertex. | |
VFIterator (VertexType *_v) | |
Constructor which takes a pointer to vertex. | |
Public Attributes | |
FaceType * | f |
Pointer to the face of the half-edge. | |
int | z |
Index of the vertex. |
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 v; The faces are traversed in no particular order. No Manifoldness requirement.
typical example:
VertexPointer v; vcg::face::VFIterator<FaceType> vfi(v); for (;!vfi.End();++vfi) vfi.F()->ClearV();
Alternative
vcg::face::VFIterator<FaceType> vfi(f, 1); while (!vfi.End()){ vfi.F()->ClearV(); ++vfi; }
See also the JumpingPos in jumping_pos.h for an iterator that loops around the faces of a vertex using FF topology and without requiring the VF topology.
Definition at line 459 of file vcg/simplex/face/pos.h.
typedef VertexType::CoordType vcg::face::VFIterator< FaceType >::CoordType |
The vector type.
Definition at line 468 of file vcg/simplex/face/pos.h.
typedef VertexType::ScalarType vcg::face::VFIterator< FaceType >::ScalarType |
The scalar type.
Definition at line 470 of file vcg/simplex/face/pos.h.
typedef FaceType::VertexType vcg::face::VFIterator< FaceType >::VertexType |
The vertex type.
Definition at line 464 of file vcg/simplex/face/pos.h.
typedef FaceType vcg::face::VFIterator< FaceType >::VFIFaceType |
The Base face type.
Definition at line 466 of file vcg/simplex/face/pos.h.
vcg::face::VFIterator< FaceType >::VFIterator | ( | ) | [inline] |
Default constructor.
Definition at line 478 of file vcg/simplex/face/pos.h.
vcg::face::VFIterator< FaceType >::VFIterator | ( | FaceType * | _f, |
const int & | _z | ||
) | [inline] |
Constructor which associates the half-edge elementet with a face and its vertex.
Definition at line 480 of file vcg/simplex/face/pos.h.
vcg::face::VFIterator< FaceType >::VFIterator | ( | VertexType * | _v | ) | [inline] |
Constructor which takes a pointer to vertex.
Definition at line 483 of file vcg/simplex/face/pos.h.
bool vcg::face::VFIterator< FaceType >::End | ( | ) | const [inline] |
Definition at line 496 of file vcg/simplex/face/pos.h.
VFIFaceType*& vcg::face::VFIterator< FaceType >::F | ( | ) | [inline] |
Definition at line 485 of file vcg/simplex/face/pos.h.
int& vcg::face::VFIterator< FaceType >::I | ( | ) | [inline] |
Definition at line 486 of file vcg/simplex/face/pos.h.
void vcg::face::VFIterator< FaceType >::operator++ | ( | ) | [inline] |
Definition at line 497 of file vcg/simplex/face/pos.h.
VertexType* vcg::face::VFIterator< FaceType >::V | ( | ) | const [inline] |
Definition at line 490 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V0 | ( | ) | const [inline] |
Definition at line 492 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V1 | ( | ) | const [inline] |
Definition at line 493 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V2 | ( | ) | const [inline] |
Definition at line 494 of file vcg/simplex/face/pos.h.
FaceType* vcg::face::VFIterator< FaceType >::f |
Pointer to the face of the half-edge.
Definition at line 473 of file vcg/simplex/face/pos.h.
int vcg::face::VFIterator< FaceType >::z |
Index of the vertex.
Definition at line 475 of file vcg/simplex/face/pos.h.