G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsSurfMesh::Halfedge Struct Reference

Detailed Description

this type represents a halfedge (internally it is basically an index)

See Also
Vertex, Edge, Face
+ Inheritance diagram for gsSurfMesh::Halfedge:
+ Collaboration diagram for gsSurfMesh::Halfedge:

Public Member Functions

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