added operator <

This commit is contained in:
Nico Pietroni 2016-05-01 15:33:34 +00:00
parent d91e861ab5
commit 97a0879676
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ public:
(v<=p.v);
}
/// Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers
inline bool operator < ( PosType const & p) const {
if ((*this)==p)return false;
return ((*this)<=p);
}
/// Assignment operator
inline PosType & operator = ( const PosType & h ){
f=h.f;