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

This class iterates linearly over all faces. More...

#include <surface_mesh.h>

Public Member Functions

 FaceIterator (Face f=Face(), const SurfaceMesh *m=nullptr)
 Default constructor.
 
Face operator* () const
 Get the face the iterator refers to.
 
bool operator== (const FaceIterator &rhs) const
 Equality operator.
 
bool operator!= (const FaceIterator &rhs) const
 Inequality operator.
 
FaceIteratoroperator++ ()
 Pre-increment iterator.
 
FaceIteratoroperator-- ()
 Pre-decrement iterator.
 

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 )
inlineexplicit

Default constructor.

Parameters
fThe face.
mThe surface mesh.

Member Function Documentation

◆ operator!=()

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

Inequality operator.

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

◆ operator*()

Face operator* ( ) const
inline

Get the face the iterator refers to.

Returns
The 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

Equality operator.

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

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