#include <pos.h>
Public Types | |
typedef VertexType::CoordType | CoordType |
The vector type. | |
typedef VertexType::ScalarType | ScalarType |
The scalar type. | |
typedef EdgeType::VertexType | VertexType |
The vertex type. | |
typedef EdgeType | VFIEdgeType |
The Base face type. | |
Public Member Functions | |
VFIEdgeType *& | E () |
bool | End () const |
int & | I () |
VFIEdgeType * | operator++ () |
VertexType * | V () const |
VertexType *const & | V0 () const |
VertexType *const & | V1 () const |
VEIterator () | |
Default constructor. | |
VEIterator (EdgeType *_e, const int &_z) | |
Constructor which associates the half-edge elementet with a face and its vertex. | |
VEIterator (const VertexType *_v) | |
Constructor which takes a pointer to vertex. | |
Public Attributes | |
EdgeType * | e |
Pointer to the face of the half-edge. | |
int | z |
Index of the vertex. |
Class VEIterator. This class is used as an iterator over the VE adjacency. It allow to easily traverse all the edges around a given vertex v; The edges are traversed in no particular order. No Manifoldness requirement.
typical example:
VertexPointer v; vcg::edge::VEIterator<EdgeType> vei(v); for (;!vei.End();++vei) vei.E()->ClearV();
Alternative
vcg::edge::VEIterator<EdgeType> vei(f, 1); while (!vei.End()){ vei.E()->ClearV(); ++vei; }
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 249 of file vcg/simplex/edge/pos.h.
typedef VertexType::CoordType vcg::edge::VEIterator< EdgeType >::CoordType |
The vector type.
Definition at line 258 of file vcg/simplex/edge/pos.h.
typedef VertexType::ScalarType vcg::edge::VEIterator< EdgeType >::ScalarType |
The scalar type.
Definition at line 260 of file vcg/simplex/edge/pos.h.
typedef EdgeType::VertexType vcg::edge::VEIterator< EdgeType >::VertexType |
The vertex type.
Definition at line 254 of file vcg/simplex/edge/pos.h.
typedef EdgeType vcg::edge::VEIterator< EdgeType >::VFIEdgeType |
The Base face type.
Definition at line 256 of file vcg/simplex/edge/pos.h.
vcg::edge::VEIterator< EdgeType >::VEIterator | ( | ) | [inline] |
Default constructor.
Definition at line 268 of file vcg/simplex/edge/pos.h.
vcg::edge::VEIterator< EdgeType >::VEIterator | ( | EdgeType * | _e, |
const int & | _z | ||
) | [inline] |
Constructor which associates the half-edge elementet with a face and its vertex.
Definition at line 270 of file vcg/simplex/edge/pos.h.
vcg::edge::VEIterator< EdgeType >::VEIterator | ( | const VertexType * | _v | ) | [inline] |
Constructor which takes a pointer to vertex.
Definition at line 273 of file vcg/simplex/edge/pos.h.
VFIEdgeType* & vcg::edge::VEIterator< EdgeType >::E | ( | ) | [inline] |
Definition at line 278 of file vcg/simplex/edge/pos.h.
bool vcg::edge::VEIterator< EdgeType >::End | ( | ) | const [inline] |
Definition at line 288 of file vcg/simplex/edge/pos.h.
int& vcg::edge::VEIterator< EdgeType >::I | ( | ) | [inline] |
Definition at line 279 of file vcg/simplex/edge/pos.h.
VFIEdgeType* vcg::edge::VEIterator< EdgeType >::operator++ | ( | ) | [inline] |
Definition at line 289 of file vcg/simplex/edge/pos.h.
VertexType* vcg::edge::VEIterator< EdgeType >::V | ( | ) | const [inline] |
Definition at line 283 of file vcg/simplex/edge/pos.h.
VertexType* const& vcg::edge::VEIterator< EdgeType >::V0 | ( | ) | const [inline] |
Definition at line 285 of file vcg/simplex/edge/pos.h.
VertexType* const& vcg::edge::VEIterator< EdgeType >::V1 | ( | ) | const [inline] |
Definition at line 286 of file vcg/simplex/edge/pos.h.
EdgeType* vcg::edge::VEIterator< EdgeType >::e |
Pointer to the face of the half-edge.
Definition at line 263 of file vcg/simplex/edge/pos.h.
int vcg::edge::VEIterator< EdgeType >::z |
Index of the vertex.
Definition at line 265 of file vcg/simplex/edge/pos.h.