Base class for all topology types (internally it is basically an index).
More...
#include <surface_mesh.h>
|
struct | Hash |
| Helper structure to be able to use std::unordered_map. More...
|
|
|
| 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.
|
|
Base class for all topology types (internally it is basically an index).
- See also
- Vertex, Halfedge, Edge, Face
◆ BaseHandle()
Constructor.
- Parameters
-
_idx | The index of the handle. |
◆ idx()
◆ is_valid()
Return whether the handle is valid, i.e., the index is not equal to -1.
- Returns
- True if the handle is valid, false otherwise.
◆ operator!=()
Inequality operator.
- Parameters
-
_rhs | The other handle to compare with. |
- Returns
- True if the handles are different, false otherwise.
◆ operator<()
Compare operator useful for sorting handles.
- Parameters
-
_rhs | The other handle to compare with. |
- Returns
- True if this handle is less than the other handle, false otherwise.
◆ operator==()
Equality operator.
- Parameters
-
_rhs | The other handle to compare with. |
- Returns
- True if the handles are equal, false otherwise.
The documentation for this class was generated from the following file: