C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844
EdgeFanIterator Class Reference

Counterclockwise iterator of vertex fan edges. Does not verify given vertex validity. More...

#include <halfedge_iterators.h>

Public Member Functions

 EdgeFanIterator (const MbHalfedge &topo, size_t iVx, bool bSure)
 Construct from vertex. More...
 
 EdgeFanIterator (const MbHalfedge &topo, size_t iEd)
 Construct from edge. More...
 
 ~EdgeFanIterator ()
 Destructor.
 
void operator++ ()
 Increment operator moves iterator to the next edge in the vertex fan.
 
const c3d::IndicesPair & EdgePair () const
 Get indices of edges for the current iterator position.
 
size_t Edge () const
 Get an index of the outgoing edge.
 
size_t Twin () const
 Get an index of the incoming edge.
 
size_t OriginVertex () const
 Get an index of the origin vertex.
 
size_t DestinationVertex () const
 Get an index of the destination vertex.
 
bool Done () const
 Check if all edges in the fan were visited during iteration.
 

Detailed Description

Counterclockwise iterator of vertex fan edges. Does not verify given vertex validity.

Constructor & Destructor Documentation

◆ EdgeFanIterator() [1/2]

EdgeFanIterator::EdgeFanIterator ( const MbHalfedge &  topo,
size_t  iVx,
bool  bSure 
)

Construct from vertex.

Parameters
[in]topo- Halfedge topology.
[in]iVx- Vertex id.
[in]bSure- True if simplified iteration is allowed. For simplified iteration a boundary vertex always stores a boundary edge.

◆ EdgeFanIterator() [2/2]

EdgeFanIterator::EdgeFanIterator ( const MbHalfedge &  topo,
size_t  iEd 
)

Construct from edge.

Parameters
[in]topo- Halfedge topology.
[in]iEd- Edge id.

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