Graphite  Version 3
An experimental 3D geometry processing program
GEO::MeshHalfedges::Halfedge Struct Reference

Stores a reference to a mesh corner and facet, and provides a halfedge-like API. More...

#include <geogram/mesh/mesh_halfedges.h>

Public Member Functions

 Halfedge ()
 Constructs a new uninitialized Halfedge.
 
 Halfedge (index_t f, index_t c)
 Constructs a new Halfedge from a facet and corner index. More...
 
void clear ()
 Clears this Halfedge.
 
bool is_nil () const
 Tests whether this Halfedge is initialized. More...
 
bool operator== (const Halfedge &rhs) const
 Tests whether this Halfedge is the same as another one. More...
 
bool operator!= (const Halfedge &rhs) const
 Tests whether this Halfedge is different from another one. More...
 

Public Attributes

index_t facet
 
index_t corner
 

Static Public Attributes

static const index_t NO_FACET = index_t(-1)
 
static const index_t NO_CORNER = index_t(-1)
 

Detailed Description

Stores a reference to a mesh corner and facet, and provides a halfedge-like API.

Definition at line 65 of file mesh_halfedges.h.

Constructor & Destructor Documentation

◆ Halfedge()

GEO::MeshHalfedges::Halfedge::Halfedge ( index_t  f,
index_t  c 
)
inline

Constructs a new Halfedge from a facet and corner index.

Parameters
[in]fthe facet index
[in]cthe corner index

Definition at line 83 of file mesh_halfedges.h.

Member Function Documentation

◆ is_nil()

bool GEO::MeshHalfedges::Halfedge::is_nil ( ) const
inline

Tests whether this Halfedge is initialized.

Returns
true if this Halfedge is uninitialized, false otherwise

Definition at line 100 of file mesh_halfedges.h.

◆ operator!=()

bool GEO::MeshHalfedges::Halfedge::operator!= ( const Halfedge rhs) const
inline

Tests whether this Halfedge is different from another one.

Parameters
[in]rhsthe comparand
Returns
true if this Halfedge and rhs refer to a different facet or corner, false otherwise.

Definition at line 120 of file mesh_halfedges.h.

◆ operator==()

bool GEO::MeshHalfedges::Halfedge::operator== ( const Halfedge rhs) const
inline

Tests whether this Halfedge is the same as another one.

Parameters
[in]rhsthe comparand
Returns
true if this Halfedge and rhs refer to the same facet and corner, false otherwise.

Definition at line 110 of file mesh_halfedges.h.


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