Easy3D 2.5.3
SurfaceMesh::HalfedgeAroundVertexCirculator Class Reference

#include <surface_mesh.h>

Public Member Functions

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

Detailed Description

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

The follow code shows how to use HalfedgeAroundVertexCirculator:

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

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