Easy3D 2.5.3
SurfaceMesh::BaseHandle Class Reference

#include <surface_mesh.h>

Inheritance diagram for SurfaceMesh::BaseHandle:
SurfaceMesh::Edge SurfaceMesh::Face SurfaceMesh::Halfedge SurfaceMesh::Vertex

Classes

struct  Hash
 helper structure to be able to use std::unordered_map More...
 

Public Member Functions

 BaseHandle (int _idx=-1)
 constructor
 
int idx () const
 Get the underlying index of this handle.
 
void reset ()
 reset handle to be invalid (index=-1)
 
bool is_valid () const
 return whether the handle is valid, i.e., the index is not equal to -1.
 
bool operator== (const BaseHandle &_rhs) const
 are two handles equal?
 
bool operator!= (const BaseHandle &_rhs) const
 are two handles different?
 
bool operator< (const BaseHandle &_rhs) const
 compare operator useful for sorting handles
 

Friends

class SurfaceMesh
 

Detailed Description

Base class for all topology types (internally it is basically an index)

See also
Vertex, Halfedge, Edge, Face

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