Easy3D 2.5.3
SurfaceMesh::FaceAroundVertexCirculator Class Reference

#include <surface_mesh.h>

Public Member Functions

 FaceAroundVertexCirculator (const SurfaceMesh *m=nullptr, Vertex v=Vertex())
 construct with mesh and vertex (vertex should not be isolated!)
 
bool operator== (const FaceAroundVertexCirculator &rhs) const
 are two circulators equal?
 
bool operator!= (const FaceAroundVertexCirculator &rhs) const
 are two circulators different?
 
FaceAroundVertexCirculatoroperator++ ()
 pre-increment (rotates counter-clockwise)
 
FaceAroundVertexCirculatoroperator-- ()
 pre-decrement (rotate clockwise)
 
Face operator* () const
 get the face the circulator refers to
 
 operator bool () const
 cast to bool: true if vertex is not isolated
 
FaceAroundVertexCirculatorbegin ()
 
FaceAroundVertexCirculatorend ()
 

Detailed Description

This class circulates through all incident faces of a vertex. It also acts as a container-concept for C++11 range-based for loops.

The follow code shows how to use FaceAroundVertexCirculator:

SurfaceMesh::FaceAroundVertexCirculator cir(mesh, v);
SurfaceMesh::FaceAroundVertexCirculator end = cir;
do {
SurfaceMesh::Face f = *cir;
// do something with f
++cir;
} while (cir != end);
See also
VertexAroundVertexCirculator, HalfedgeAroundVertexCirculator, faces()
Examples
Tutorial_105_SurfaceMesh_Connectivity.

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