Class to store triangle edges. More...
#include <triangle_edge.h>
Public Member Functions | |
TriangleEdge (uint v0, uint v1) | |
Constructor. Sorts arguments to ensure _vertex0<_vertex1. | |
TriangleEdge (const TriangleEdge &e) | |
Copy constructor. | |
~TriangleEdge () | |
Destructor. | |
uint | vertex0 () const |
Accessor. | |
uint | vertex1 () const |
Accessor. | |
Protected Attributes | |
const uint | _vertex0 |
One vertex of the edge. This should always be the lesser valued index. | |
const uint | _vertex1 |
The other vertex of the edge. This should always be the greater valued index. | |
Class to store triangle edges.
An edge is described by two vertices. These are ordered internally for more efficient sorting and comparison. This class is useful for, for example, discovering adjacent triangles through edges they have in common. NB There is no void constructor because the const vertices wouldn't be set.