Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
PatateCommon::SurfaceMesh::BaseHandle Class Reference

Inherited by PatateCommon::SurfaceMesh::Edge, PatateCommon::SurfaceMesh::Face, PatateCommon::SurfaceMesh::Halfedge, and PatateCommon::SurfaceMesh::Vertex.

Detailed Description

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

See Also
Vertex, Halfedge, Edge, Face

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 isValid () 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 VertexIterator
 
class HalfedgeIterator
 
class EdgeIterator
 
class FaceIterator
 
class SurfaceMesh