Easy3D 2.6.1
Loading...
Searching...
No Matches
SurfaceMesh::Vertex Struct Reference

This type represents a vertex (internally it is basically an index). More...

#include <surface_mesh.h>

Inheritance diagram for SurfaceMesh::Vertex:
SurfaceMesh::BaseHandle

Public Member Functions

 Vertex (int _idx=-1)
 Default constructor (with invalid index).
 
std::ostream & operator<< (std::ostream &os) const
 Output stream support for Vertex.
 
- Public Member Functions inherited from SurfaceMesh::BaseHandle
 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
 Equality operator.
 
bool operator!= (const BaseHandle &_rhs) const
 Inequality operator.
 
bool operator< (const BaseHandle &_rhs) const
 Compare operator useful for sorting handles.
 

Detailed Description

Constructor & Destructor Documentation

◆ Vertex()

Vertex ( int _idx = -1)
inlineexplicit

Default constructor (with invalid index).

Parameters
_idxThe index of the vertex.

Member Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os) const
inline

Output stream support for Vertex.

Parameters
osThe output stream.
Returns
The output stream with the vertex index.

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