Easy3D 2.6.1
Loading...
Searching...
No Matches
PolyMesh::FaceIterator Class Reference

Face iterator for PolyMesh. This class iterates linearly over all faces. More...

#include <poly_mesh.h>

Public Member Functions

 FaceIterator (Face f=Face(), const PolyMesh *m=nullptr)
 Default constructor.
 
Face operator* () const
 Get the face the iterator refers to.
 
bool operator== (const FaceIterator &rhs) const
 Are two iterators equal?
 
bool operator!= (const FaceIterator &rhs) const
 Are two iterators different?
 
FaceIterator & operator++ ()
 Pre-increment iterator.
 
FaceIterator & operator-- ()
 Pre-decrement iterator.
 

Detailed Description

Face iterator for PolyMesh. This class iterates linearly over all faces.

See also
faces_begin(), faces_end()
VertexIterator, EdgeIterator, HalfFaceIterator, CellIterator

Constructor & Destructor Documentation

◆ FaceIterator()

FaceIterator ( Face  f = Face(),
const PolyMesh *  m = nullptr 
)
inlineexplicit

Default constructor.

Parameters
fThe face to start the iterator
mThe PolyMesh to iterate over

Member Function Documentation

◆ operator!=()

bool operator!= ( const FaceIterator &  rhs) const
inline

Are two iterators different?

Parameters
rhsThe other iterator to compare
Returns
True if the iterators are different, false otherwise

◆ operator*()

Face operator* ( ) const
inline

Get the face the iterator refers to.

Returns
The current face

◆ operator++()

FaceIterator & operator++ ( )
inline

Pre-increment iterator.

Returns
Reference to the incremented iterator

◆ operator--()

FaceIterator & operator-- ( )
inline

Pre-decrement iterator.

Returns
Reference to the decremented iterator

◆ operator==()

bool operator== ( const FaceIterator &  rhs) const
inline

Are two iterators equal?

Parameters
rhsThe other iterator to compare
Returns
True if the iterators are equal, false otherwise

The documentation for this class was generated from the following file: