My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | Protected Attributes | List of all members
TriangleEdge Class Reference

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.
 

Detailed Description

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.


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