GitHub link
Polygon Mesh Processing Library
SurfaceMesh::HalfedgeIterator Class Reference

this class iterates linearly over all halfedges More...

#include <pmp/SurfaceMesh.h>

Public Member Functions

 HalfedgeIterator (Halfedge h=Halfedge(), const SurfaceMesh *mesh=nullptr)
 Default constructor. More...
 
Halfedge operator* () const
 get the halfedge the iterator refers to More...
 
bool operator== (const HalfedgeIterator &rhs) const
 are two iterators equal? More...
 
bool operator!= (const HalfedgeIterator &rhs) const
 are two iterators different? More...
 
HalfedgeIteratoroperator++ ()
 pre-increment iterator More...
 
HalfedgeIterator operator++ (int)
 post-increment iterator More...
 
HalfedgeIteratoroperator-- ()
 pre-decrement iterator More...
 
HalfedgeIterator operator-- (int)
 post-decrement iterator More...
 

Detailed Description

this class iterates linearly over all halfedges

See also
halfedges_begin(), halfedges_end()
VertexIterator, EdgeIterator, FaceIterator

Constructor & Destructor Documentation

◆ HalfedgeIterator()

HalfedgeIterator ( Halfedge  h = Halfedge(),
const SurfaceMesh mesh = nullptr 
)
inline

Default constructor.

Member Function Documentation

◆ operator!=()

bool operator!= ( const HalfedgeIterator rhs) const
inline

are two iterators different?

◆ operator*()

Halfedge operator* ( ) const
inline

get the halfedge the iterator refers to

◆ operator++() [1/2]

HalfedgeIterator & operator++ ( )
inline

pre-increment iterator

◆ operator++() [2/2]

HalfedgeIterator operator++ ( int  )
inline

post-increment iterator

◆ operator--() [1/2]

HalfedgeIterator & operator-- ( )
inline

pre-decrement iterator

◆ operator--() [2/2]

HalfedgeIterator operator-- ( int  )
inline

post-decrement iterator

◆ operator==()

bool operator== ( const HalfedgeIterator rhs) const
inline

are two iterators equal?