Track::MeshFaces::Edge Struct Reference

An edge between two vertices in the same face. More...

#include <MeshFaces.h>

Inheritance diagram for Track::MeshFaces::Edge:

Track::MeshFaces::EdgeGraph List of all members.

Public Member Functions

 Edge ()
 Edge (std::size_t v1, std::size_t v2)
 Initalise from the vertex indices.
bool operator< (Edge o) const
 comparison so we can order edges in a std::set.

Public Attributes

std::size_t v1
 the first vertex index to use
std::size_t v2
 the second vertex index to use

Detailed Description

An edge between two vertices in the same face.

Definition at line 141 of file MeshFaces.h.


Constructor & Destructor Documentation

Track::MeshFaces::Edge::Edge (  )  [inline]

Definition at line 143 of file MeshFaces.h.

Track::MeshFaces::Edge::Edge ( std::size_t  v1,
std::size_t  v2 
)

Initalise from the vertex indices.

Definition at line 52 of file MeshFaces.cpp.


Member Function Documentation

bool Track::MeshFaces::Edge::operator< ( Edge  o  )  const

comparison so we can order edges in a std::set.

Switching the order of v1 & v2 in an Edge makes no difference to its ordering.

Parameters:
o the edge to test against
Returns:
true if this edge has either vertex lower than an equivalent one in o; false otherwise.

Definition at line 59 of file MeshFaces.cpp.


Member Data Documentation

std::size_t Track::MeshFaces::Edge::v1

the first vertex index to use

Definition at line 147 of file MeshFaces.h.

std::size_t Track::MeshFaces::Edge::v2

the second vertex index to use

Definition at line 149 of file MeshFaces.h.


The documentation for this struct was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.