Polygon Mesh Processing Library
No Matches
Handle Class Reference

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

#include <pmp/surface_mesh.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
auto operator<=> (const Handle &rhs) const =default
 are two handles equal?

Detailed Description

Base class for all entity handles types.

internally it is basically an index.

Member Function Documentation

◆ is_valid()

bool is_valid ( ) const
whether the handle is valid, i.e., the index is not equal to PMP_MAX_INDEX.