Easy3D 2.6.1
Loading...
Searching...
No Matches
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
 Equality operator.
 
bool operator!= (const VertexAroundVertexCirculator &rhs) const
 Inequality operator.
 
VertexAroundVertexCirculatoroperator++ ()
 Pre-increment operator (rotate counter-clockwise).
 
VertexAroundVertexCirculatoroperator-- ()
 Pre-decrement operator (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
 Get the current halfedge.
 
VertexAroundVertexCirculatorbegin ()
 Helper for C++11 range-based for-loops.
 
VertexAroundVertexCirculatorend ()
 Helper for C++11 range-based for-loops.
 

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:

do {
// do something with v
++cir;
} while (cir != end);
VertexAroundVertexCirculator & end()
Helper for C++11 range-based for-loops.
Definition surface_mesh.h:927
This type represents a vertex (internally it is basically an index).
Definition surface_mesh.h:135
See also
HalfedgeAroundVertexCirculator, FaceAroundVertexCirculator, vertices()
Examples
Tutorial_105_SurfaceMesh_Connectivity/main.cpp.

Constructor & Destructor Documentation

◆ VertexAroundVertexCirculator()

VertexAroundVertexCirculator ( const SurfaceMesh * m = nullptr,
Vertex v = Vertex() )
inlineexplicit

Default constructor.

Parameters
mThe surface mesh.
vThe vertex.

Member Function Documentation

◆ begin()

VertexAroundVertexCirculator & begin ( )
inline

Helper for C++11 range-based for-loops.

Returns
Reference to the beginning circulator.

◆ end()

VertexAroundVertexCirculator & end ( )
inline

Helper for C++11 range-based for-loops.

Returns
Reference to the ending circulator.

◆ halfedge()

Halfedge halfedge ( ) const
inline

Get the current halfedge.

Returns
The current halfedge.

◆ operator bool()

operator bool ( ) const
inline

Cast to bool: true if vertex is not isolated.

Returns
True if the vertex is not isolated, false otherwise.

◆ operator!=()

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

Inequality operator.

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

◆ operator*()

Vertex operator* ( ) const
inline

Get the vertex the circulator refers to.

Returns
The vertex.

◆ operator++()

VertexAroundVertexCirculator & operator++ ( )
inline

Pre-increment operator (rotate counter-clockwise).

Returns
Reference to the incremented circulator.

◆ operator--()

VertexAroundVertexCirculator & operator-- ( )
inline

Pre-decrement operator (rotate clockwise).

Returns
Reference to the decremented circulator.

◆ operator==()

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

Equality operator.

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

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