#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 () |
VFIFaceType * | operator++ () |
VertexType * | V () const |
VertexType *const & | V0 () const |
VertexType *const & | V1 () const |
VertexType *const & | V2 () const |
VFIterator (VertexType *_v) | |
Constructor which takes a pointer to vertex. | |
VFIterator (FaceType *_f, const int &_z) | |
Constructor which associates the half-edge elementet with a face and its vertex. | |
VFIterator () | |
Default constructor. | |
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 494 of file vcg/simplex/face/pos.h.
typedef VertexType::CoordType vcg::face::VFIterator< FaceType >::CoordType |
The vector type.
Definition at line 503 of file vcg/simplex/face/pos.h.
typedef VertexType::ScalarType vcg::face::VFIterator< FaceType >::ScalarType |
The scalar type.
Definition at line 505 of file vcg/simplex/face/pos.h.
typedef FaceType::VertexType vcg::face::VFIterator< FaceType >::VertexType |
The vertex type.
Definition at line 499 of file vcg/simplex/face/pos.h.
typedef FaceType vcg::face::VFIterator< FaceType >::VFIFaceType |
The Base face type.
Definition at line 501 of file vcg/simplex/face/pos.h.
vcg::face::VFIterator< FaceType >::VFIterator | ( | ) | [inline] |
Default constructor.
Definition at line 513 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 515 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 518 of file vcg/simplex/face/pos.h.
bool vcg::face::VFIterator< FaceType >::End | ( | ) | const [inline] |
Definition at line 531 of file vcg/simplex/face/pos.h.
VFIFaceType*& vcg::face::VFIterator< FaceType >::F | ( | ) | [inline] |
Definition at line 520 of file vcg/simplex/face/pos.h.
int& vcg::face::VFIterator< FaceType >::I | ( | ) | [inline] |
Definition at line 521 of file vcg/simplex/face/pos.h.
VFIFaceType* vcg::face::VFIterator< FaceType >::operator++ | ( | ) | [inline] |
Definition at line 532 of file vcg/simplex/face/pos.h.
VertexType* vcg::face::VFIterator< FaceType >::V | ( | ) | const [inline] |
Definition at line 525 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V0 | ( | ) | const [inline] |
Definition at line 527 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V1 | ( | ) | const [inline] |
Definition at line 528 of file vcg/simplex/face/pos.h.
VertexType* const& vcg::face::VFIterator< FaceType >::V2 | ( | ) | const [inline] |
Definition at line 529 of file vcg/simplex/face/pos.h.
FaceType* vcg::face::VFIterator< FaceType >::f |
Pointer to the face of the half-edge.
Definition at line 508 of file vcg/simplex/face/pos.h.
int vcg::face::VFIterator< FaceType >::z |
Index of the vertex.
Definition at line 510 of file vcg/simplex/face/pos.h.