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 );
92 #endif // WGEOMETRYFUNCTIONS_H