Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEOGen::ConvexCell::Corner Class Reference

A Corner corresponds to a vertex seen from a triangle. More...

#include <geogram/voronoi/generic_RVD_cell.h>

Public Member Functions

 Corner ()
 Creates an uninitialized Corner.
 
 Corner (index_t t_in, index_t v_in)
 Creates a Corner from a triangle index and local vertex index. More...
 
bool operator== (const Corner &rhs) const
 Compares two corners. More...
 
bool operator!= (const Corner &rhs) const
 Compares two corners. More...
 

Public Attributes

index_t t
 
index_t v
 

Detailed Description

A Corner corresponds to a vertex seen from a triangle.

Corner has helper functions that facilitate traversing the vertices of a facet in dual form.

Definition at line 638 of file generic_RVD_cell.h.

Constructor & Destructor Documentation

◆ Corner()

GEOGen::ConvexCell::Corner::Corner ( index_t  t_in,
index_t  v_in 
)
inline

Creates a Corner from a triangle index and local vertex index.

Parameters
[in]t_inindex of the triangle
[in]v_inlocal index (0,1 or 2) in triangle t_in.

Definition at line 654 of file generic_RVD_cell.h.

Member Function Documentation

◆ operator!=()

bool GEOGen::ConvexCell::Corner::operator!= ( const Corner rhs) const
inline

Compares two corners.

Parameters
[in]rhsthe right hand side
Return values
trueif this Corner and rhs correspond to different triangles or different vertices
falseotherwise

Definition at line 677 of file generic_RVD_cell.h.

◆ operator==()

bool GEOGen::ConvexCell::Corner::operator== ( const Corner rhs) const
inline

Compares two corners.

Parameters
[in]rhsthe right hand side
Return values
trueif this Corner and rhs correspond to the same triangle and the same vertex
falseotherwise

Definition at line 666 of file generic_RVD_cell.h.


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