GitHub link
PMP
The Polygon Mesh Processing Library
Handle Class Reference

Base class for all entity handles types. More...

#include <pmp/SurfaceMesh.h>

Inherited by Edge, Face, Halfedge, and Vertex.

Public Member Functions

 Handle (IndexType idx=PMP_MAX_INDEX)
 default constructor with invalid index
 
IndexType idx () const
 Get the underlying index of this handle.
 
void reset ()
 reset handle to be invalid (index=PMP_MAX_INDEX.)
 
bool is_valid () const
 return whether the handle is valid, i.e., the index is not equal to PMP_MAX_INDEX.
 
bool operator== (const Handle &rhs) const
 are two handles equal?
 
bool operator!= (const Handle &rhs) const
 are two handles different?
 
bool operator< (const Handle &rhs) const
 compare operator useful for sorting handles
 

Detailed Description

internally it is basically an index.