Easy3D 2.5.3
SurfaceMesh::VertexAroundVertexCirculator Class Reference

#include <surface_mesh.h>

Public Member Functions

 VertexAroundVertexCirculator (const SurfaceMesh *m=nullptr, Vertex v=Vertex())
 default constructor
 
bool operator== (const VertexAroundVertexCirculator &rhs) const
 are two circulators equal?
 
bool operator!= (const VertexAroundVertexCirculator &rhs) const
 are two circulators different?
 
VertexAroundVertexCirculatoroperator++ ()
 pre-increment (rotate counter-clockwise)
 
VertexAroundVertexCirculatoroperator-- ()
 pre-decrement (rotate clockwise)
 
Vertex operator* () const
 get the vertex the circulator refers to
 
 operator bool () const
 cast to bool: true if vertex is not isolated
 
Halfedge halfedge () const
 return current halfedge
 
VertexAroundVertexCirculatorbegin ()
 
VertexAroundVertexCirculatorend ()
 

Detailed Description

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

The follow code shows how to use VertexAroundVertexCirculator:

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

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