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

#include <surface_mesh.h>

Public Member Functions

 VertexAroundFaceCirculator (const SurfaceMesh *m=nullptr, Face f=Face())
 Default constructor.
 
bool operator== (const VertexAroundFaceCirculator &rhs) const
 Equality operator.
 
bool operator!= (const VertexAroundFaceCirculator &rhs) const
 Inequality operator.
 
VertexAroundFaceCirculatoroperator++ ()
 Pre-increment operator (rotate counter-clockwise).
 
VertexAroundFaceCirculatoroperator-- ()
 Pre-decrement operator (rotate clockwise).
 
Vertex operator* () const
 Get the vertex the circulator refers to.
 
VertexAroundFaceCirculatorbegin ()
 Helper for C++11 range-based for-loops.
 
VertexAroundFaceCirculatorend ()
 Helper for C++11 range-based for-loops.
 

Detailed Description

This class circulates through the vertices of a face. It also acts as a container-concept for C++11 range-based for loops.

The follow code shows how to use VertexAroundFaceCirculator:

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

Constructor & Destructor Documentation

◆ VertexAroundFaceCirculator()

VertexAroundFaceCirculator ( const SurfaceMesh * m = nullptr,
Face f = Face() )
inlineexplicit

Default constructor.

Parameters
mThe surface mesh.
fThe face.

Member Function Documentation

◆ begin()

VertexAroundFaceCirculator & begin ( )
inline

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

Returns
Reference to the beginning circulator.

◆ end()

VertexAroundFaceCirculator & end ( )
inline

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

Returns
Reference to the ending circulator.

◆ operator!=()

bool operator!= ( const VertexAroundFaceCirculator & 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++()

VertexAroundFaceCirculator & operator++ ( )
inline

Pre-increment operator (rotate counter-clockwise).

Returns
Reference to the incremented circulator.

◆ operator--()

VertexAroundFaceCirculator & operator-- ( )
inline

Pre-decrement operator (rotate clockwise).

Returns
Reference to the decremented circulator.

◆ operator==()

bool operator== ( const VertexAroundFaceCirculator & 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: