25 #ifndef WGEOMETRYFUNCTIONS_H
26 #define WGEOMETRYFUNCTIONS_H
32 #include "../WAssert.h"
33 #include "linearAlgebra/WVectorFixed.h"
42 class Edge :
public std::pair< unsigned int, unsigned int >
51 Edge(
unsigned int i,
unsigned int j )
52 : std::pair< unsigned int, unsigned int >( i < j ? i : j, i < j ? j : i )
64 return first < e.first || ( first == e.first && second < e.second );
75 return first == e.first && second == e.second;
90 void tesselateIcosahedron( std::vector< WVector3d >* vertices, std::vector< unsigned int >* triangles,
unsigned int level );
A helper class that is used to store edges as pairs of vertex indices.
bool operator<(Edge const &e) const
Compare two edges.
Edge(unsigned int i, unsigned int j)
Constructor that sorts the input indices.
bool operator==(Edge const &e) const
Compare two edges for equality.