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

this class iterates linearly over all faces More...

#include <pmp/SurfaceMesh.h>

Public Member Functions

 FaceIterator (Face f=Face(), const SurfaceMesh *m=nullptr)
 Default constructor. More...
 
Face operator* () const
 get the face the iterator refers to More...
 
bool operator== (const FaceIterator &rhs) const
 are two iterators equal? More...
 
bool operator!= (const FaceIterator &rhs) const
 are two iterators different? More...
 
FaceIteratoroperator++ ()
 pre-increment iterator More...
 
FaceIterator operator++ (int)
 post-increment iterator More...
 
FaceIteratoroperator-- ()
 pre-decrement iterator More...
 
FaceIterator operator-- (int)
 post-decrement iterator More...
 

Detailed Description

this class iterates linearly over all faces

See also
faces_begin(), faces_end()
VertexIterator, HalfedgeIterator, EdgeIterator

Constructor & Destructor Documentation

◆ FaceIterator()

FaceIterator ( Face  f = Face(),
const SurfaceMesh m = nullptr 
)
inline

Default constructor.

Member Function Documentation

◆ operator!=()

bool operator!= ( const FaceIterator rhs) const
inline

are two iterators different?

◆ operator*()

Face operator* ( ) const
inline

get the face the iterator refers to

◆ operator++() [1/2]

FaceIterator & operator++ ( )
inline

pre-increment iterator

◆ operator++() [2/2]

FaceIterator operator++ ( int  )
inline

post-increment iterator

◆ operator--() [1/2]

FaceIterator & operator-- ( )
inline

pre-decrement iterator

◆ operator--() [2/2]

FaceIterator operator-- ( int  )
inline

post-decrement iterator

◆ operator==()

bool operator== ( const FaceIterator rhs) const
inline

are two iterators equal?