FaceVertexIterator, transverse all the vertices of a face CCWly. More...
#include <iterators.h>
Public Member Functions | |
FaceVertexIterator (CFace *f) | |
~FaceVertexIterator () | |
void | operator++ () |
void | operator++ (int) |
CVertex * | value () |
CVertex * | operator* () |
bool | end () |
Private Attributes | |
CFace * | m_face |
CHalfEdge * | m_halfedge |
FaceVertexIterator, transverse all the vertices of a face CCWly.
Definition at line 696 of file iterators.h.
MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::FaceVertexIterator | ( | CFace * | f | ) | [inline] |
FaceVertexIterator constructor
f | the current face |
Definition at line 703 of file iterators.h.
{ m_face = f; m_halfedge = (CHalfEdge*)f->halfedge(); };
MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::~FaceVertexIterator | ( | ) | [inline] |
bool MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::end | ( | ) | [inline] |
Indicate whether all the vertices have been accessed.
Definition at line 753 of file iterators.h.
{ return m_halfedge == NULL; };
CVertex* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator* | ( | ) | [inline] |
The vertex, pointed by the current iterator
Definition at line 749 of file iterators.h.
{ return value(); };
void MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator++ | ( | int | ) | [inline] |
FaceVertexIterator prefix operator ++, goes to the next vertex CCWly
Definition at line 731 of file iterators.h.
{ assert( m_halfedge != NULL ); m_halfedge = (CHalfEdge*)m_halfedge->he_next(); if( m_halfedge == (CHalfEdge*)m_face->halfedge() ) { m_halfedge = NULL; return; }; }
void MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::operator++ | ( | ) | [inline] |
FaceVertexIterator prefix operator ++, goes to the next vertex CCWly
Definition at line 716 of file iterators.h.
{ assert( m_halfedge != NULL ); m_halfedge = (CHalfEdge*)m_halfedge->he_next(); if( m_halfedge == (CHalfEdge*)m_face->halfedge() ) { m_halfedge = NULL; return; }; }
CVertex* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::value | ( | ) | [inline] |
The vertex, pointed by the current iterator
Definition at line 745 of file iterators.h.
{ return (CVertex*) m_halfedge->target(); };
CFace* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::m_face [private] |
Current face.
Definition at line 753 of file iterators.h.
CHalfEdge* MeshLib::FaceVertexIterator< CVertex, CEdge, CFace, CHalfEdge >::m_halfedge [private] |
Current halfedge.
Definition at line 761 of file iterators.h.